[pygobject/benzea/gio-asyncio: 2/2] asdfadsf




commit f1e691af3a849dbb1c4494e018c2191d804fbb35
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Oct 27 17:39:03 2021 +0200

    asdfadsf

 gi/events.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gi/events.py b/gi/events.py
index 1291cb73..907433ee 100644
--- a/gi/events.py
+++ b/gi/events.py
@@ -162,8 +162,11 @@ class EventLoop(asyncio.SelectorEventLoop):
                 # Try to restore the python handler for SIGINT, this makes
                 # Ctrl+C work after the mainloop has quit.
                 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]