git-hurdsig-boot-fix
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 5 May 2020 18:12:38 +0000 (19:12 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 5 May 2020 18:12:38 +0000 (19:12 +0100)
Committed for glibc 2.31

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 git-hurdsig-boot-fix.diff

hurd/hurdsig.c

index 5decf842a100a573ff6fef332586afe9b8a11ad0..3efceb6fde96f921450ed9b94d5ce7bffb44e1c4 100644 (file)
@@ -163,7 +163,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