mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-03 09:16:30 -04:00
listener: unlock lev on error in listener_read_cb()
Without this patch: $ regress --no-fork +listener/error_unlock listener/error_unlock: [warn] Error from accept() call: Too many open files [err] ../evthread.c:220: Assertion lock->count == 0 failed in ../evthread.c Aborted (core dumped) Fixes: #341 Fixes: listener/error_unlock
This commit is contained in:
parent
7d85651694
commit
2a71b33233
@ -442,6 +442,7 @@ listener_read_cb(evutil_socket_t fd, short what, void *p)
|
||||
listener_decref_and_unlock(lev);
|
||||
} else {
|
||||
event_sock_warn(fd, "Error from accept() call");
|
||||
UNLOCK(lev);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user