2009-08-04 21:52:16 +02:00
|
|
|
Index: os/connection.c
|
2010-03-20 03:42:15 +01:00
|
|
|
================================================================================
|
|
|
|
--- os/connection.c
|
2009-08-04 21:52:16 +02:00
|
|
|
+++ os/connection.c
|
2010-03-20 03:42:15 +01:00
|
|
|
@@ -999,7 +999,7 @@
|
2007-12-13 14:12:10 +01:00
|
|
|
do {
|
|
|
|
r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime);
|
|
|
|
} while (r < 0 && (errno == EINTR || errno == EAGAIN));
|
2006-12-18 15:48:26 +01:00
|
|
|
- if (r < 0)
|
|
|
|
+ if (r < 0 && (errno == EBADF))
|
2007-12-13 14:12:10 +01:00
|
|
|
if (ConnectionTranslation[curclient] > 0)
|
|
|
|
CloseDownClient(clients[ConnectionTranslation[curclient]]);
|
2006-12-18 15:48:26 +01:00
|
|
|
mask &= ~((fd_mask)1 << curoff);
|