diff options
Diffstat (limited to 'scheduler/select.c')
-rw-r--r-- | scheduler/select.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scheduler/select.c b/scheduler/select.c index 0ac6ce063..8896388cc 100644 --- a/scheduler/select.c +++ b/scheduler/select.c @@ -750,7 +750,7 @@ cupsdRemoveSelect(int fd) /* I - File descriptor */ { cupsdLogMessage(CUPSD_LOG_EMERG, "kevent() returned %s", strerror(errno)); - return; + goto cleanup; } } @@ -762,11 +762,10 @@ cupsdRemoveSelect(int fd) /* I - File descriptor */ { cupsdLogMessage(CUPSD_LOG_EMERG, "kevent() returned %s", strerror(errno)); - return; + goto cleanup; } } - #elif defined(HAVE_POLL) /* * Update the pollfds array... @@ -781,6 +780,10 @@ cupsdRemoveSelect(int fd) /* I - File descriptor */ 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...) |