Skip to contentSkip to conversation

linux-user: sig is target signal

PATCH New Riku Voipio 1 participant 1 message Nov 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: sig is target signal

compare SIGSTOP and SIGKILL uniformly against the target signal number. Replaces Debian patch 11_signal_sigaction

---
 linux-user/signal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
linux-user/signal.c +1 -1
index cce4922..e0f6aaf 100644
@@ -507,7 +507,7 @@ int do_sigaction(int sig, const struct target_sigaction *act,
     int host_sig;
     int ret = 0;
 
-    if (sig < 1 || sig > TARGET_NSIG || sig == SIGKILL || sig == SIGSTOP)
+    if (sig < 1 || sig > TARGET_NSIG || sig == TARGET_SIGKILL || sig == TARGET_SIGSTOP)
         return -EINVAL;
     k = &sigact_table[sig - 1];
 #if defined(DEBUG_SIGNAL)
Signature · 5 lines
1.5.6.5


-- 
"rm -rf" only sounds scary if you don't have backups