summaryrefslogtreecommitdiff
path: root/src/fdevent_freebsd_kqueue.c
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-08-30 10:42:06 +0000
committerJan Kneschke <jan@kneschke.de>2005-08-30 10:42:06 +0000
commite47ae00886f1ebc1737a7894ae91dc330d330255 (patch)
tree96f46a28909158a007ffa39ae1f3c216cad90c4e /src/fdevent_freebsd_kqueue.c
parentd84a87154748687fcaf331c411a5a6544e4ce31b (diff)
downloadlighttpd1.4-e47ae00886f1ebc1737a7894ae91dc330d330255.tar.gz
lighttpd1.4-e47ae00886f1ebc1737a7894ae91dc330d330255.zip
let kqueue startup after daemonize is done
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@650 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/fdevent_freebsd_kqueue.c')
-rw-r--r--src/fdevent_freebsd_kqueue.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/fdevent_freebsd_kqueue.c b/src/fdevent_freebsd_kqueue.c
index fdc41ff4..1f6a6fcb 100644
--- a/src/fdevent_freebsd_kqueue.c
+++ b/src/fdevent_freebsd_kqueue.c
@@ -149,8 +149,6 @@ static int fdevent_freebsd_kqueue_event_next_fdndx(fdevents *ev, int ndx) {
}
static int fdevent_freebsd_kqueue_reset(fdevents *ev) {
- close(ev->kq_fd);
-
if (-1 == (ev->kq_fd = kqueue())) {
fprintf(stderr, "%s.%d: kqueue failed (%s), try to set server.event-handler = \"poll\" or \"select\"\n",
__FILE__, __LINE__, strerror(errno));
@@ -178,12 +176,8 @@ int fdevent_freebsd_kqueue_init(fdevents *ev) {
SET(event_get_fd);
SET(event_get_revent);
- if (-1 == (ev->kq_fd = kqueue())) {
- fprintf(stderr, "%s.%d: kqueue failed (%s), try to set server.event-handler = \"poll\" or \"select\"\n",
- __FILE__, __LINE__, strerror(errno));
-
- return -1;
- }
+ ev->kq_fd = -1;
+
ev->kq_results = calloc(ev->maxfds, sizeof(*ev->kq_results));
ev->kq_bevents = bitset_init(ev->maxfds);