Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-01 04:06:17 +0400
committerChristopher Faylor <me@cgf.cx>2001-04-01 04:06:17 +0400
commitf611148366ee3934d16824f8a973177aaece0aa8 (patch)
treeb27e26f288e5497966f358cb47783a1bff9a5d19 /winsup/cygwin/signal.cc
parentab57d1463946e37a5b7ce25498b3b42c3f617666 (diff)
* sigproc.h (class sigframe): Implement 'unregister()' method.
(sigframe::~sigframe): Use unregister method. (sigframe::call_signal_handler): Declare new method. * exceptions.cc (sigframe::call_signal_handler): New method. Unregisters current sigframe before calling signal handler. (setup_handler): Clear waiting threads prior to arming signal_arrived. * syscalls.cc (_read): Change goto to loop. Recalculate sigframe inside of loop so that constructor is called when appropriate. * wait.cc (wait4): Ditto. * signal.cc: Change "sig" to "signal" in debugging messages throughout. * sigproc.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r--winsup/cygwin/signal.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc
index ea4a4394a..bc3746b2d 100644
--- a/winsup/cygwin/signal.cc
+++ b/winsup/cygwin/signal.cc
@@ -99,7 +99,7 @@ sigprocmask (int sig, const sigset_t *set, sigset_t *oldset)
if (sig < 0 || sig >= NSIG)
{
set_errno (EINVAL);
- syscall_printf ("SIG_ERR = sigprocmask sig %d out of range", sig);
+ syscall_printf ("SIG_ERR = sigprocmask signal %d out of range", sig);
return -1;
}
@@ -182,7 +182,7 @@ _kill (pid_t pid, int sig)
if (sig < 0 || sig >= NSIG)
{
set_errno (EINVAL);
- syscall_printf ("sig %d out of range", sig);
+ syscall_printf ("signal %d out of range", sig);
return -1;
}
@@ -202,7 +202,7 @@ kill_pgrp (pid_t pid, int sig)
int found = 0;
int killself = 0;
- sigproc_printf ("pid %d, sig %d", pid, sig);
+ sigproc_printf ("pid %d, signal %d", pid, sig);
winpids pids;
for (unsigned i = 0; i < pids.npids; i++)
@@ -247,12 +247,12 @@ killpg (pid_t pgrp, int sig)
extern "C" int
sigaction (int sig, const struct sigaction *newact, struct sigaction *oldact)
{
- sigproc_printf ("sig %d, newact %p, oldact %p", sig, newact, oldact);
+ sigproc_printf ("signal %d, newact %p, oldact %p", sig, newact, oldact);
/* check that sig is in right range */
if (sig < 0 || sig >= NSIG)
{
set_errno (EINVAL);
- syscall_printf ("SIG_ERR = sigaction sig %d out of range", sig);
+ syscall_printf ("SIG_ERR = sigaction signal %d out of range", sig);
return -1;
}
@@ -286,7 +286,7 @@ sigaddset (sigset_t *set, const int sig)
if (sig <= 0 || sig >= NSIG)
{
set_errno (EINVAL);
- syscall_printf ("SIG_ERR = sigaddset sig %d out of range", sig);
+ syscall_printf ("SIG_ERR = sigaddset signal %d out of range", sig);
return -1;
}
@@ -301,7 +301,7 @@ sigdelset (sigset_t *set, const int sig)
if (sig <= 0 || sig >= NSIG)
{
set_errno (EINVAL);
- syscall_printf ("SIG_ERR = sigdelset sig %d out of range", sig);
+ syscall_printf ("SIG_ERR = sigdelset signal %d out of range", sig);
return -1;
}
@@ -316,7 +316,7 @@ sigismember (const sigset_t *set, int sig)
if (sig <= 0 || sig >= NSIG)
{
set_errno (EINVAL);
- syscall_printf ("SIG_ERR = sigdelset sig %d out of range", sig);
+ syscall_printf ("SIG_ERR = sigdelset signal %d out of range", sig);
return -1;
}