mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-29 18:40:25 +08:00
* fhandler_socket.cc (fhandler_socket::accept): Rename `signalled'
to `interrupted' as used in fhandler_socket::connect.
This commit is contained in:
parent
dfe7d28850
commit
cbdc3d1780
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user