summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/net.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/net.cc
parent8b3bcfbab9d0a96b133d6076971ea11bfd52e288 (diff)
downloadcygnal-17743fbc49ebb23300e0a36d8c5a27ed63e2bf41.tar.gz
cygnal-17743fbc49ebb23300e0a36d8c5a27ed63e2bf41.tar.bz2
cygnal-17743fbc49ebb23300e0a36d8c5a27ed63e2bf41.zip
* exceptions.cc (ctrl_c_handler): Always send signal to process if it has no
tty.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 56848877b..235ea7e91 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -1931,9 +1931,9 @@ wsock_init ()
static LONG NO_COPY here = -1L;
static int NO_COPY wsock_started = 0;
- while (InterlockedIncrement (&here))
+ while (ilockincr (&here))
{
- InterlockedDecrement (&here);
+ ilockdecr (&here);
Sleep (0);
}
if (!wsock_started && (wsock32_handle || ws2_32_handle))
@@ -1960,6 +1960,6 @@ wsock_init ()
wsock_started = 1;
}
}
- InterlockedDecrement (&here);
+ ilockdecr (&here);
}