summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-02-21 22:02:00 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-02-21 22:02:00 +0100
commit016c9c1a1191067aaae39b3e179ae168e815ec8b (patch)
tree4a7defd8fe71abd1b3ee325ca221769e7b289429
parente8164ce832b8eacb9f11dc2647a888dab3749df4 (diff)
parent3611e70524a330d1d177259812e5f9f5c609158a (diff)
Merge commit 'refs/top-bases/t/libpthread_sigs' into t/libpthread_sigs
-rw-r--r--hurd/hurdsig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c
index 3ea61ccf0f..3ada31483e 100644
--- a/hurd/hurdsig.c
+++ b/hurd/hurdsig.c
@@ -162,7 +162,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