version 1.50, 2001/02/12 22:56:08 |
version 1.51, 2001/02/13 21:51:09 |
|
|
if (select((*maxfdp)+1, *readsetp, *writesetp, NULL, NULL) < 0) { |
if (select((*maxfdp)+1, *readsetp, *writesetp, NULL, NULL) < 0) { |
char buf[100]; |
char buf[100]; |
|
|
|
/* |
|
* We have to clear the select masks, because we return. |
|
* We have to return, because the mainloop checks for the flags |
|
* set by the signal handlers. |
|
*/ |
|
memset(*readsetp, 0, *maxfdp); |
|
memset(*writesetp, 0, *maxfdp); |
|
|
if (errno == EINTR) |
if (errno == EINTR) |
return; |
return; |
/* Note: we might still have data in the buffers. */ |
/* Note: we might still have data in the buffers. */ |