diff options
author | Richard Braun <rbraun@sceen.net> | 2012-11-27 22:52:14 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-11-27 22:52:24 +0100 |
commit | 1ae3533fc2c364e3b99696a45076ceaee17cc79f (patch) | |
tree | 8d4f55226a462b1fd79b011dc9a00c0ce7e7fc05 /hurd/hurdsig.c | |
parent | 2ac13c42a955923b9953bf2a85d739ae4184ba06 (diff) |
fix sigstate_is_global_rcv at boot
* hurd/hurdsig.c (sigstate_is_global_rcv): Do not return true
if _HURD_GLOBAL_SIGSTATE is null.
Diffstat (limited to 'hurd/hurdsig.c')
-rw-r--r-- | hurd/hurdsig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index 140f951017..7840cd5b4c 100644 --- a/hurd/hurdsig.c +++ b/hurd/hurdsig.c @@ -159,7 +159,8 @@ _hurd_sigstate_set_global_rcv (struct hurd_sigstate *ss) static int sigstate_is_global_rcv (const struct hurd_sigstate *ss) { - return ss->actions[0].sa_handler == SIG_IGN; + return (_hurd_global_sigstate != NULL) + && (ss->actions[0].sa_handler == SIG_IGN); } /* Lock/unlock a hurd_sigstate structure. If the accessors below require |