diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index ffddf6204..b85e0bd56 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -1347,13 +1347,10 @@ start_thread_socket (select_record *me, select_stuff *stuff) if (_my_tls.locals.exitsock != INVALID_SOCKET) { - if (!si->exitsock) - { - char buf[1]; - si->exitsock = _my_tls.locals.exitsock; - select_printf ("read a byte from %p", si->exitsock); - recv (si->exitsock, buf, 1, 0); - } + char buf[1]; + si->exitsock = _my_tls.locals.exitsock; + select_printf ("read a byte from %p", si->exitsock); + recv (si->exitsock, buf, 1, 0); } else {