unix: don't close kqueue fd in kqueue_fork()
The file descriptor is not inherited by the child process. Trying to close it is not just useless, it's actively harmful - if the close() call succeeds, it will have closed an altogether different file descriptor.
This commit is contained in:
parent
bf8ccfce18
commit
98f3446c43
@ -200,8 +200,6 @@ kqueue_destroy (EV_P)
|
||||
void inline_size
|
||||
kqueue_fork (EV_P)
|
||||
{
|
||||
close (backend_fd);
|
||||
|
||||
while ((backend_fd = kqueue ()) < 0)
|
||||
ev_syserr ("(libev) kqueue");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user