summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-02-28 07:54:11 +0000
committerRoy Marples <roy@marples.name>2016-02-28 07:54:11 +0000
commit23a44889bc1660654df7f355938695541f514926 (patch)
treeff5dd56f2a72ce6389b0ab89f95535d4932b91e5
parent8b4023bab4673e76c5eea27cde0a85b5f3b82380 (diff)
downloadparpd-23a44889bc1660654df7f355938695541f514926.tar.xz
Sync latest eloop.
-rw-r--r--eloop.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/eloop.c b/eloop.c
index 3c57f46..44448ff 100644
--- a/eloop.c
+++ b/eloop.c
@@ -772,7 +772,10 @@ eloop_new(void)
eloop->exitcode = EXIT_FAILURE;
#if defined(HAVE_KQUEUE) || defined(HAVE_EPOLL)
eloop->poll_fd = -1;
- eloop_open(eloop);
+ if (eloop_open(eloop) == -1) {
+ eloop_free(eloop);
+ return NULL;
+ }
#endif
}