aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/signal.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-01-08 04:02:02 +0000
committerChristopher Faylor <me@cgf.cx>2001-01-08 04:02:02 +0000
commit077ec4cb37134f2e90dd282ce9c6e496052e35e5 (patch)
treed551c0b2fc0000d7a858d98afbd1c5d27ecb8ac1 /winsup/cygwin/signal.cc
parent10422a10ea57f189556171b00c691536512beaa0 (diff)
downloadnewlib-077ec4cb37134f2e90dd282ce9c6e496052e35e5.zip
newlib-077ec4cb37134f2e90dd282ce9c6e496052e35e5.tar.gz
newlib-077ec4cb37134f2e90dd282ce9c6e496052e35e5.tar.bz2
* pinfo.cc (codepage_init): Move function.
* environ.cc (codepage_init): To here. * exceptoins.cc (SIG_NONMASKABLE): Remove SIGCONT from consideration since it is supposed to be maskable. * signal.cc (sigaction): Ditto. * sigproc.cc (wait_sig): Ditto. * winsup.h: Eliminate global declaration of codepage_init.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r--winsup/cygwin/signal.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc
index 242b2fb..f1a5131 100644
--- a/winsup/cygwin/signal.cc
+++ b/winsup/cygwin/signal.cc
@@ -1,6 +1,6 @@
/* signal.cc
- Copyright 1996, 1997, 1998, 1999, 2000 Cygnus Solutions.
+ Copyright 1996, 1997, 1998, 1999, 2000, 2001 Red Hat, Inc.
Written by Steve Chamberlain of Cygnus Support, sac@cygnus.com
Significant changes by Sergey Okhapkin <sos@prospect.com.ru>
@@ -262,7 +262,8 @@ sigaction (int sig, const struct sigaction *newact, struct sigaction *oldact)
if (newact)
{
- if ((sig == SIGKILL || sig == SIGSTOP) && newact->sa_handler != SIG_DFL)
+ if ((sig == SIGKILL || sig == SIGSTOP || sig == SIGCONT) &&
+ newact->sa_handler != SIG_DFL)
{
set_errno (EINVAL);
return -1;