aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/debug.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-05-04 20:39:38 +0000
committerChristopher Faylor <me@cgf.cx>2001-05-04 20:39:38 +0000
commit17743fbc49ebb23300e0a36d8c5a27ed63e2bf41 (patch)
tree5ac0733972c757a0b3b75229f419add2a0a33902 /winsup/cygwin/debug.cc
parent8b3bcfbab9d0a96b133d6076971ea11bfd52e288 (diff)
downloadnewlib-17743fbc49ebb23300e0a36d8c5a27ed63e2bf41.zip
newlib-17743fbc49ebb23300e0a36d8c5a27ed63e2bf41.tar.gz
newlib-17743fbc49ebb23300e0a36d8c5a27ed63e2bf41.tar.bz2
* exceptions.cc (ctrl_c_handler): Always send signal to process if it has no
tty.
Diffstat (limited to 'winsup/cygwin/debug.cc')
-rw-r--r--winsup/cygwin/debug.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/debug.cc b/winsup/cygwin/debug.cc
index bd58e47..4ddc8b8 100644
--- a/winsup/cygwin/debug.cc
+++ b/winsup/cygwin/debug.cc
@@ -87,7 +87,7 @@ thread_stub (VOID *arg)
exception_list except_entry;
/* Give up our slot in the start_buf array */
- (void) InterlockedExchange (&((thread_start *) arg)->notavail, 0);
+ (void) ilockexch (&((thread_start *) arg)->notavail, 0);
/* Initialize this thread's ability to respond to things like
SIGSEGV or SIGFPE. */
@@ -112,7 +112,7 @@ makethread (LPTHREAD_START_ROUTINE start, LPVOID param, DWORD flags,
{
/* Search the start_buf array for an empty slot to use */
for (info = start_buf; info < start_buf + NTHREADS; info++)
- if (!InterlockedExchange (&info->notavail, 1))
+ if (!ilockexch (&info->notavail, 1))
goto out;
/* Should never hit here, but be defensive anyway. */