Index: scheduler/select.c =================================================================== --- scheduler/select.c (revision 8751) +++ scheduler/select.c (working copy) @@ -750,7 +750,7 @@ { cupsdLogMessage(CUPSD_LOG_EMERG, "kevent() returned %s", strerror(errno)); - return; + goto cleanup; } } @@ -762,11 +762,10 @@ { cupsdLogMessage(CUPSD_LOG_EMERG, "kevent() returned %s", strerror(errno)); - return; + goto cleanup; } } - #elif defined(HAVE_POLL) /* * Update the pollfds array... @@ -781,6 +780,10 @@ FD_CLR(fd, &cupsd_current_output); #endif /* HAVE_EPOLL */ +#ifdef HAVE_KQUEUE + cleanup: +#endif /* HAVE_KQUEUE */ + /* * Remove the file descriptor from the active array and add to the * inactive array (or release, if we don't need the inactive array...)