Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions qiling/os/posix/syscall/signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from qiling.const import QL_ARCH
from qiling.os import struct
from qiling.os.posix.const import NSIG
from qiling.os.posix.const import EINVAL, NSIG

# TODO: MIPS differs in too many details around signals; MIPS implementation is better extracted out

Expand Down Expand Up @@ -161,7 +161,7 @@ def __sigprocmask(ql: Qiling, how: int, newset: int, oldset: int):
ql.os.blocked_signals = set_mask

else:
return -1 # EINVAL
return -EINVAL

# silently drop attempts to block SIGKILL and SIGSTOP
ql.os.blocked_signals &= ~((1 << SIGKILL) | (1 << SIGSTOP))
Expand Down