diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-06-02 21:20:22 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-06-02 21:20:22 +0000 |
commit | cbdc3d178024f9637bdfc3af410572274f6dd91b (patch) | |
tree | 9618d14b229f26a12e9294f0cd7a15ebcb958c5a /winsup/cygwin | |
parent | dfe7d288506ffd94cd2acb295881d22da502d191 (diff) | |
download | newlib-cbdc3d178024f9637bdfc3af410572274f6dd91b.zip newlib-cbdc3d178024f9637bdfc3af410572274f6dd91b.tar.gz newlib-cbdc3d178024f9637bdfc3af410572274f6dd91b.tar.bz2 |
* fhandler_socket.cc (fhandler_socket::accept): Rename `signalled'
to `interrupted' as used in fhandler_socket::connect.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_socket.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 51ff4a6..1dbdc00 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2003-06-02 Corinna Vinschen <corinna@vinschen.de> + * fhandler_socket.cc (fhandler_socket::accept): Rename `signalled' + to `interrupted' as used in fhandler_socket::connect. + +2003-06-02 Corinna Vinschen <corinna@vinschen.de> + * fhandler_socket.cc (fhandler_socket::connect): Simplify previous patch. (fhandler_socket::accept): Ditto. diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 53e4e3b..c335f31 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -643,9 +643,9 @@ fhandler_socket::accept (struct sockaddr *peer, int *len) sock_thread_data ad = { get_socket (), peer, len, -1 }; cygthread *thread = new cygthread (accept_thread, &ad, "accept"); HANDLE waitevt = CreateEvent(&sec_none_nih, FALSE, TRUE, NULL); - bool signalled = thread->detach (waitevt); + BOOL interrupted = thread->detach (waitevt); CloseHandle (waitevt); - if (signalled) + if (interrupted) return -1; res = ad.ret; } |