tg-hurdsig-boot-fix
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 4 Feb 2020 19:37:26 +0000 (19:37 +0000)
committerAurelien Jarno <aurel32@debian.org>
Tue, 4 Feb 2020 19:37:26 +0000 (19:37 +0000)
2012-09-05  Richard Braun  <rbraun@sceen.net>

       * 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

index 9dc7ced0de42cf5015b96bd39ce67571ab09b026..05e754bf79c377198184b35a9f23bf1d4adbc6f4 100644 (file)
@@ -183,7 +183,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