summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-21 06:00:33 +0000
committerGuido van Rossum <guido@python.org>1997-01-21 06:00:33 +0000
commitad74fa66747020e6ed0c70a5a649cf9cb007179d (patch)
tree8f275ecdea554c9ecae71ea0c03537a018021392
parent1aa14838d24ae37df51c24cddbb013c1d356ed60 (diff)
downloadcpython-git-ad74fa66747020e6ed0c70a5a649cf9cb007179d.tar.gz
In the Unix version, arrange for sigcheck() to be called via
Py_AddPendingCall(). This avoids having to call sigcheck() in the ticker code in ceval.c's main interpreter loop.
-rw-r--r--Parser/intrcheck.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c
index 5213573a4a..92fab1c310 100644
--- a/Parser/intrcheck.c
+++ b/Parser/intrcheck.c
@@ -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