[pygobject/benzea/gio-asyncio] asdfadsf
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/benzea/gio-asyncio] asdfadsf
- Date: Wed, 27 Oct 2021 15:44:01 +0000 (UTC)
commit 72eb529a447a8dfb3a1c6c0518c705b7f8c67b4d
Author: Benjamin Berg <bberg redhat com>
Date: Wed Oct 27 17:39:03 2021 +0200
asdfadsf
gi/events.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gi/events.py b/gi/events.py
index 1291cb73..002090a4 100644
--- a/gi/events.py
+++ b/gi/events.py
@@ -161,9 +161,13 @@ class EventLoop(asyncio.SelectorEventLoop):
# GLib does not restore the original signal handler.
# Try to restore the python handler for SIGINT, this makes
# Ctrl+C work after the mainloop has quit.
+ print('remove_signal_handler:', sig, signal.SIGINT, _ossighelper.PyOS_getsig(signal.SIGINT))
if sig == signal.SIGINT and _ossighelper.PyOS_getsig(signal.SIGINT) == 0:
+ print('resetting lowlevel SIGINT handler')
if _ossighelper.startup_sigint_ptr > 0:
_ossighelper.PyOS_setsig(signal.SIGINT, _ossighelper.startup_sigint_ptr)
+ else:
+ print('no startup sigint ptr!')
return True
except KeyError:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]