summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/pt-sigstate.c39
1 files changed, 21 insertions, 18 deletions
diff --git a/sysdeps/mach/hurd/pt-sigstate.c b/sysdeps/mach/hurd/pt-sigstate.c
index 2af3e39..74fd72a 100644
--- a/sysdeps/mach/hurd/pt-sigstate.c
+++ b/sysdeps/mach/hurd/pt-sigstate.c
@@ -43,24 +43,27 @@ __pthread_sigstate (struct __pthread *thread, int how,
*oset = ss->blocked;
if (set)
- switch (how)
- {
- case SIG_BLOCK:
- ss->blocked |= *set;
- break;
-
- case SIG_SETMASK:
- ss->blocked = *set;
- break;
-
- case SIG_UNBLOCK:
- ss->blocked &= ~*set;
- break;
-
- default:
- err = EINVAL;
- break;
- }
+ {
+ switch (how)
+ {
+ case SIG_BLOCK:
+ ss->blocked |= *set;
+ break;
+
+ case SIG_SETMASK:
+ ss->blocked = *set;
+ break;
+
+ case SIG_UNBLOCK:
+ ss->blocked &= ~*set;
+ break;
+
+ default:
+ err = EINVAL;
+ break;
+ }
+ ss->blocked &= ~_SIG_CANT_MASK;
+ }
if (! err && clear_pending)
__sigemptyset (&ss->pending);