fix BSDs after last commit

This commit is contained in:
Joris Vink 2019-09-27 12:31:17 +02:00
parent 7350131232
commit 46127459d9
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ kore_platform_event_init(void)
/* Hack to check if we're running under the parent or not. */
if (worker != NULL) {
LIST_FOREACH(l, &listeners, list) {
if (l->fd == -1)
continue;
kore_platform_event_schedule(l->fd,
EVFILT_READ, EV_ADD | EV_DISABLE, l);
}