diff options
-rw-r--r-- | hurd/hurd-raise.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hurd/hurd-raise.c b/hurd/hurd-raise.c index af46437..865e498 100644 --- a/hurd/hurd-raise.c +++ b/hurd/hurd-raise.c @@ -29,7 +29,11 @@ _hurd_raise_signal (struct hurd_sigstate *ss, int signo, const struct hurd_signal_detail *detail) { if (signo <= 0 || signo >= NSIG) - return EINVAL; + { + if (ss) + __spin_unlock (&ss->lock); + return EINVAL; + } if (ss == NULL) { |