summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 701d4e0de..415a011a4 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -16,6 +16,7 @@
#include <sys/time.h>
#include <unistd.h>
#include <sys/ioctl.h>
+#include <errno.h>
#endif
#include <fcntl.h>
@@ -147,7 +148,7 @@ static int send_from_fifo(int fd)
} else {
session[fd]->wdata_size=0;
}
- } else {
+ } else if (errno != EAGAIN) {
printf("set eof :%d\n",fd);
session[fd]->eof=1;
}