[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#57699: Assertion failure "lib_child_handler != dummy_handler"
From: |
Stefan Monnier |
Subject: |
bug#57699: Assertion failure "lib_child_handler != dummy_handler" |
Date: |
Fri, 09 Sep 2022 11:27:07 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> EEMPTYPATCH
Hmm... not sure how that happened.
Let's try again.
Stefan
diff --git a/src/process.c b/src/process.c
index 7a133cda00f..331f7daf83e 100644
--- a/src/process.c
+++ b/src/process.c
@@ -8438,11 +8438,15 @@ init_process_emacs (int sockfd)
catch_child_signal ();
g_source_unref (source);
- eassert (lib_child_handler != dummy_handler);
- signal_handler_t lib_child_handler_glib = lib_child_handler;
- catch_child_signal ();
- eassert (lib_child_handler == dummy_handler);
- lib_child_handler = lib_child_handler_glib;
+ /* Apparently more recent versions of glib do not set this handler
+ any more, so make sure the dance is needed before going for it. */
+ if (lib_child_handler != dummy_handler)
+ {
+ signal_handler_t lib_child_handler_glib = lib_child_handler;
+ catch_child_signal ();
+ eassert (lib_child_handler == dummy_handler);
+ lib_child_handler = lib_child_handler_glib;
+ }
#else
catch_child_signal ();
#endif
- bug#57699: Assertion failure "lib_child_handler != dummy_handler", Stefan Monnier, 2022/09/09
- bug#57699: Assertion failure "lib_child_handler != dummy_handler", Robert Pluim, 2022/09/09
- bug#57699: Assertion failure "lib_child_handler != dummy_handler",
Stefan Monnier <=
- bug#57699: Assertion failure "lib_child_handler != dummy_handler", Lars Ingebrigtsen, 2022/09/09
- bug#57699: Assertion failure "lib_child_handler != dummy_handler", Paul Eggert, 2022/09/09
- bug#57699: Assertion failure "lib_child_handler != dummy_handler", Basil L. Contovounesios, 2022/09/11
- bug#57699: Assertion failure "lib_child_handler != dummy_handler", Eli Zaretskii, 2022/09/11
- bug#57699: Assertion failure "lib_child_handler != dummy_handler", Stefan Monnier, 2022/09/11
- bug#57699: Assertion failure "lib_child_handler != dummy_handler", Paul Eggert, 2022/09/11