EINTR is harmless

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@618 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.2
Jan Kneschke 17 years ago
parent 06becfacfc
commit e1855b24dd
  1. 10
      src/fdevent_freebsd_kqueue.c

@ -100,8 +100,14 @@ static int fdevent_freebsd_kqueue_poll(fdevents *ev, int timeout_ms) {
&ts);
if (ret == -1) {
fprintf(stderr, "%s.%d: kqueue failed polling: %s\n",
__FILE__, __LINE__, strerror(errno));
switch(errno) {
case EINTR:
/* we got interrupted, perhaps just a SIGCHLD of a CGI script */
return 0;
default:
fprintf(stderr, "%s.%d: kqueue failed polling: %s\n",
__FILE__, __LINE__, strerror(errno));
break;
}
return ret;

Loading…
Cancel
Save