]> granicus.if.org Git - python/commitdiff
In the Unix version, arrange for sigcheck() to be called via
authorGuido van Rossum <guido@python.org>
Tue, 21 Jan 1997 06:00:33 +0000 (06:00 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 21 Jan 1997 06:00:33 +0000 (06:00 +0000)
Py_AddPendingCall().  This avoids having to call sigcheck() in the
ticker code in ceval.c's main interpreter loop.

Parser/intrcheck.c

index 5213573a4a30bccf5681561060326f3a44cc0fad..92fab1c3103de1079ba3b8b9bb7334a2a9024ba1 100644 (file)
@@ -137,6 +137,8 @@ PyErr_SetInterrupt()
        interrupted = 1;
 }
 
+extern int sigcheck();
+
 /* ARGSUSED */
 static RETSIGTYPE
 #ifdef _M_IX86
@@ -161,6 +163,7 @@ intcatcher(sig)
                break;
        }
        signal(SIGINT, intcatcher);
+       Py_AddPendingCall(sigcheck, NULL);
 }
 
 void