summaryrefslogtreecommitdiff
path: root/hurd/hurdsig.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2012-11-27 22:52:14 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-11-27 22:52:24 +0100
commit1ae3533fc2c364e3b99696a45076ceaee17cc79f (patch)
tree8d4f55226a462b1fd79b011dc9a00c0ce7e7fc05 /hurd/hurdsig.c
parent2ac13c42a955923b9953bf2a85d739ae4184ba06 (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.c3
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