summaryrefslogtreecommitdiff
path: root/libevent
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2022-01-08 13:44:58 +0100
committerTim Biermann <tbier@posteo.de>2022-01-10 16:45:19 +0100
commitf43ff11dc343e0726957c4583534c5189945de25 (patch)
treed946d232995ef7cfe49ee118281ce7db1ca1e42d /libevent
parent22c46ee39d55fcca6f05c2c2a1bbdf46c15da9b9 (diff)
downloadopt-f43ff11dc343e0726957c4583534c5189945de25.tar.gz
opt-f43ff11dc343e0726957c4583534c5189945de25.tar.xz
libevent: removed old patch
Diffstat (limited to 'libevent')
-rw-r--r--libevent/warn-if-forked-from-the-event-loop.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/libevent/warn-if-forked-from-the-event-loop.patch b/libevent/warn-if-forked-from-the-event-loop.patch
deleted file mode 100644
index b6fd3ecea..000000000
--- a/libevent/warn-if-forked-from-the-event-loop.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From b75922ae5b6d7bea6ef2f53618dca6c5760c71b4 Mon Sep 17 00:00:00 2001
-From: Azat Khuzhin <azat@libevent.org>
-Date: Mon, 1 Jul 2019 23:54:02 +0300
-Subject: [PATCH] Warn if forked from the event loop during event_reinit()
-
-Calling fork() from the event loop is not a great idea, since at least
-it shares some internal pipes (for handling signals) before
-event_reinit() call
-
-Closes: #833
-(cherry picked from commit 497ef904d544ac51de43934549dbeccce8e6e8f8)
----
- event.c | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/event.c b/event.c
-index bfd94ebd0..b2ad34102 100644
---- a/event.c
-+++ b/event.c
-@@ -987,6 +987,12 @@ event_reinit(struct event_base *base)
-
- EVBASE_ACQUIRE_LOCK(base, th_base_lock);
-
-+ if (base->running_loop) {
-+ event_warnx("%s: forked from the event_loop.", __func__);
-+ res = -1;
-+ goto done;
-+ }
-+
- evsel = base->evsel;
-
- /* check if this event mechanism requires reinit on the backend */

Generated by cgit