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




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

    asdfadsf

 gi/events.py      | 4 ++++
 tests/meson.build | 1 +
 2 files changed, 5 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:
diff --git a/tests/meson.build b/tests/meson.build
index 6a25688e..4747ba61 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -124,6 +124,7 @@ python_paths = [join_paths(meson.current_build_dir(), '..')]
 if pycairo_dep.found() and pycairo_dep.type_name() == 'internal'
   python_paths += [join_paths(meson.build_root(), 'subprojects', 'pycairo')]
 endif
+envdata.append('PYGI_TEST_VERBOSE', '1')
 envdata.append('PYTHONPATH', python_paths)
 envdata.append('TESTS_BUILDDIR', meson.current_build_dir())
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]