diff options
author | Christopher Faylor <me@cgf.cx> | 2001-05-04 20:39:38 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-05-04 20:39:38 +0000 |
commit | 17743fbc49ebb23300e0a36d8c5a27ed63e2bf41 (patch) | |
tree | 5ac0733972c757a0b3b75229f419add2a0a33902 /winsup/cygwin/autoload.cc | |
parent | 8b3bcfbab9d0a96b133d6076971ea11bfd52e288 (diff) | |
download | newlib-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/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 633d91a..995563a 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -70,9 +70,9 @@ std_dll_init (HANDLE &dll_handle, const char *dll_name, LONG &here) { HANDLE h; - while (InterlockedIncrement (&here)) + while (ilockincr (&here)) { - InterlockedDecrement (&here); + ilockdecr (&here); Sleep (0); } @@ -83,7 +83,7 @@ std_dll_init (HANDLE &dll_handle, const char *dll_name, LONG &here) else api_fatal ("could not load %s, %E", dll_name); - InterlockedDecrement (&here); + ilockdecr (&here); return 0; } |