From: Samuel Thibault Date: Thu, 24 Jan 2019 18:27:00 +0000 (+0100) Subject: hurd: Fix initial sigaltstack state X-Git-Tag: upstream/2.30~424 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0bb5abd09e3d0f66c3dccf70bf74c8b2d7cc1c2;p=external%2Fglibc.git hurd: Fix initial sigaltstack state * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in sigaltstack.ss_flags. --- diff --git a/ChangeLog b/ChangeLog index 8f3924d..60f4e60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-01-24 Samuel Thibault + + * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in + sigaltstack.ss_flags. + 2019-01-24 TAMUKI Shoichi [BZ #23758] diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index 1d9516a..1e4b346 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;