aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-07-04 23:57:43 +0000
committerChristopher Faylor <me@cgf.cx>2006-07-04 23:57:43 +0000
commita16597363fa56f042de4f7a99c546f1cb04c811a (patch)
tree819e144ccf6089a2d22665727334653d8ddeebaf
parente51ac1a2bfe63520561bebbe487c2d0c58419755 (diff)
downloadnewlib-a16597363fa56f042de4f7a99c546f1cb04c811a.zip
newlib-a16597363fa56f042de4f7a99c546f1cb04c811a.tar.gz
newlib-a16597363fa56f042de4f7a99c546f1cb04c811a.tar.bz2
* signal.cc (signal): Set sa_mask to sig.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/signal.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c81fb9e..5b60fe3 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2006-07-04 Corinna Vinschen <corinna@vinschen.de>
+ * signal.cc (signal): Set sa_mask to sig.
+
+2006-07-04 Corinna Vinschen <corinna@vinschen.de>
+
* Makefile.in (DLL_OFILES): Add rexec.o.
* autoload.cc (inet_network): Drop definition.
(rexec): Ditto.
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc
index 2510d22..ff769e4 100644
--- a/winsup/cygwin/signal.cc
+++ b/winsup/cygwin/signal.cc
@@ -74,7 +74,7 @@ signal (int sig, _sig_func_ptr func)
else
gs.sa_flags |= SA_RESTART;
- gs.sa_mask = 0;
+ gs.sa_mask = SIGTOMASK (sig);
gs.sa_handler = func;
gs.sa_flags &= ~SA_SIGINFO;