mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Add a comment about handling event_free() for signals in event_signal_closure()
This commit is contained in:
parent
77fed76099
commit
dc37edc4ea
3
event.c
3
event.c
@ -1387,7 +1387,8 @@ event_signal_closure(struct event_base *base, struct event *ev)
|
||||
short ncalls;
|
||||
int should_break;
|
||||
|
||||
/* Allows deletes to work */
|
||||
/* Allows deletes to work, see also event_del_nolock_() that has
|
||||
* special treatment for signals */
|
||||
ncalls = ev->ev_ncalls;
|
||||
if (ncalls != 0)
|
||||
ev->ev_pncalls = &ncalls;
|
||||
|
Loading…
x
Reference in New Issue
Block a user