From dc37edc4ea130914fd0009ab688281ebce3daf52 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 20 Oct 2024 21:59:13 +0200 Subject: [PATCH] Add a comment about handling event_free() for signals in event_signal_closure() --- event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/event.c b/event.c index 04476409..6cf7051f 100644 --- a/event.c +++ b/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;