diff options
| author | Roy Marples <roy@marples.name> | 2016-02-28 07:54:11 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-02-28 07:54:11 +0000 |
| commit | 23a44889bc1660654df7f355938695541f514926 (patch) | |
| tree | ff5dd56f2a72ce6389b0ab89f95535d4932b91e5 | |
| parent | 8b4023bab4673e76c5eea27cde0a85b5f3b82380 (diff) | |
| download | parpd-23a44889bc1660654df7f355938695541f514926.tar.xz | |
Sync latest eloop.
| -rw-r--r-- | eloop.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 } |
