From fa077203c8f62b0b247e0b441926b29a4355448c Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Mon, 29 Oct 2018 20:36:01 +0000 Subject: [PATCH] tg-hurdsig-boot-fix 2012-09-05 Richard Braun * hurd/hurdsig.c (sigstate_is_global_rcv): Do not return true if _HURD_GLOBAL_SIGSTATE is null. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name tg-hurdsig-boot-fix.diff --- hurd/hurdsig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index 35d3bb87a..ad550fb9f 100644 --- a/hurd/hurdsig.c +++ b/hurd/hurdsig.c @@ -178,7 +178,8 @@ compat_symbol (libc, __hurd_sigstate_set_global_rcv_2_13, _hurd_sigstate_set_glo 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 -- 2.30.2