diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-01-24 19:27:00 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-01-24 19:27:00 +0100 |
commit | a0bb5abd09e3d0f66c3dccf70bf74c8b2d7cc1c2 (patch) | |
tree | dc52a1ec3a5f66f588d1d83cb4f9d91cf145c556 /hurd | |
parent | 32f600a27275ec7a315cbbc465cb19b06b44f9b8 (diff) | |
download | glibc-a0bb5abd09e3d0f66c3dccf70bf74c8b2d7cc1c2.tar.gz glibc-a0bb5abd09e3d0f66c3dccf70bf74c8b2d7cc1c2.tar.xz glibc-a0bb5abd09e3d0f66c3dccf70bf74c8b2d7cc1c2.zip |
hurd: Fix initial sigaltstack state
* hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in sigaltstack.ss_flags.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/hurdsig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index 1d9516a2f7..1e4b3466ce 100644 --- a/hurd/hurdsig.c +++ b/hurd/hurdsig.c @@ -92,6 +92,7 @@ _hurd_thread_sigstate (thread_t thread) __sigemptyset (&ss->blocked); __sigemptyset (&ss->pending); memset (&ss->sigaltstack, 0, sizeof (ss->sigaltstack)); + ss->sigaltstack.ss_flags |= SS_DISABLE; ss->preemptors = NULL; ss->suspended = MACH_PORT_NULL; ss->intr_port = MACH_PORT_NULL; |