aboutsummaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-11-11 11:28:20 +0000
committerRoland McGrath <roland@gnu.org>1998-11-11 11:28:20 +0000
commit159d4836052d805bd37d94720c16a589c283c0da (patch)
tree20838e7a23723d17a43b4ec1140c6cfe5ceb463d /hurd
parentfc7af6d6a81925490fd7515471867c1fb96c8415 (diff)
downloadglibc-159d4836052d805bd37d94720c16a589c283c0da.zip
glibc-159d4836052d805bd37d94720c16a589c283c0da.tar.gz
glibc-159d4836052d805bd37d94720c16a589c283c0da.tar.bz2
* hurd/hurdsig.c (_hurdsig_init): Add assertion that no pending,
unblocked signals are set in the startup masks.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurdsig.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c
index 67f5bd0..1c1a229 100644
--- a/hurd/hurdsig.c
+++ b/hurd/hurdsig.c
@@ -1236,6 +1236,12 @@ _hurdsig_init (const int *intarray, size_t intarraysize)
/* Receive exceptions on the signal port. */
__task_set_special_port (__mach_task_self (),
TASK_EXCEPTION_PORT, _hurd_msgport);
+
+ /* Sanity check. Any pending, unblocked signals should have been
+ taken by our predecessor incarnation (i.e. parent or pre-exec state)
+ before packing up our init ints. This assert is last (not above)
+ so that signal handling is all set up to handle the abort. */
+ assert ((ss->pending &~ ss->blocked) == 0);
}
/* XXXX */
/* Reauthenticate with the proc server. */