diff --git a/src/libckpool.c b/src/libckpool.c index aada784a..aa7047ed 100644 --- a/src/libckpool.c +++ b/src/libckpool.c @@ -482,6 +482,9 @@ void empty_socket(int fd) { int ret; + if (fd < 1) + return; + do { char buf[PAGESIZE]; tv_t timeout = {0, 0};