[pygobject] ossig: pass the signal number and frame to default_int_handler()



commit 89a68f503fad697ca190196e5284c01b13af6b37
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Sun Apr 1 11:15:18 2018 +0200

    ossig: pass the signal number and frame to default_int_handler()
    
    PyPy doesn't have default parameter values there.

 gi/_ossighelper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gi/_ossighelper.py b/gi/_ossighelper.py
index 5d92366e..dc8a8272 100644
--- a/gi/_ossighelper.py
+++ b/gi/_ossighelper.py
@@ -267,4 +267,4 @@ def register_sigint_fallback(callback):
             yield
         finally:
             if _sigint_called:
-                signal.default_int_handler()
+                signal.default_int_handler(signal.SIGINT, None)


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