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-05-05 00:39:38 +0400
committerChristopher Faylor <me@cgf.cx>2001-05-05 00:39:38 +0400
commit17743fbc49ebb23300e0a36d8c5a27ed63e2bf41 (patch)
tree5ac0733972c757a0b3b75229f419add2a0a33902 /winsup/cygwin/sigproc.cc
parent8b3bcfbab9d0a96b133d6076971ea11bfd52e288 (diff)
* exceptions.cc (ctrl_c_handler): Always send signal to process if it has no
tty.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index a44e31611..0d2c4f7a8 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -473,7 +473,7 @@ proc_terminate (void)
void __stdcall
sig_clear (int sig)
{
- (void) InterlockedExchange (myself->getsigtodo (sig), 0L);
+ (void) ilockexch (myself->getsigtodo (sig), 0L);
return;
}
@@ -696,7 +696,7 @@ sig_send (_pinfo *p, int sig, DWORD ebp, bool exception)
/* Increment the sigtodo array to signify which signal to assert.
*/
- (void) InterlockedIncrement (p->getsigtodo (sig));
+ (void) ilockincr (p->getsigtodo (sig));
/* Notify the process that a signal has arrived.
*/
@@ -783,7 +783,7 @@ out:
void __stdcall
sig_set_pending (int sig)
{
- (void) InterlockedIncrement (myself->getsigtodo (sig));
+ (void) ilockincr (myself->getsigtodo (sig));
return;
}
@@ -1137,7 +1137,7 @@ wait_sig (VOID *)
int dispatched_sigchld = 0;
for (int sig = -__SIGOFFSET; sig < NSIG; sig++)
{
- while (InterlockedDecrement (myself->getsigtodo (sig)) >= 0)
+ while (ilockdecr (myself->getsigtodo (sig)) >= 0)
{
if (sig == SIGCHLD)
saw_sigchld = 1;
@@ -1171,14 +1171,14 @@ wait_sig (VOID *)
dispatched_sigchld = 1;
/* Need to decrement again to offset increment below since
we really do want to decrement in this case. */
- InterlockedDecrement (myself->getsigtodo (sig));
+ ilockdecr (myself->getsigtodo (sig));
goto nextsig; /* FIXME: shouldn't this allow the loop to continue? */
}
}
nextsig:
/* Decremented too far. */
- if (InterlockedIncrement (myself->getsigtodo (sig)) > 0)
+ if (ilockincr (myself->getsigtodo (sig)) > 0)
saw_pending_signals = 1;
}