summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-04-15 15:33:52 (GMT)
committerGuido van Rossum <guido@python.org>1993-04-15 15:33:52 (GMT)
commitacbe8da4f886ad733401631a870ff58f8c0ad9a4 (patch)
tree648c6b7454c184e30332fc612826fd45f64cd188 /Parser
parent8a0c3456c2020d1a1f87619c4651e4eab831938a (diff)
downloadcpython-acbe8da4f886ad733401631a870ff58f8c0ad9a4.zip
cpython-acbe8da4f886ad733401631a870ff58f8c0ad9a4.tar.gz
cpython-acbe8da4f886ad733401631a870ff58f8c0ad9a4.tar.bz2
(I suggest a recompile after getting this, the ceval.c bugfix may be crucial!)
* Makefile: removed superfluous AR=ar, fixed misleading comment. * ceval.c: fixed debugging code; save/restore errors in locals_2_fast. * intrcheck.c: for SunOS etc., turn off syscall resumption. * regexpr.h: bump number of registers to 100.
Diffstat (limited to 'Parser')
-rw-r--r--Parser/intrcheck.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c
index feab766..4636b3f 100644
--- a/Parser/intrcheck.c
+++ b/Parser/intrcheck.c
@@ -140,6 +140,15 @@ initintr()
{
if (signal(SIGINT, SIG_IGN) != SIG_IGN)
signal(SIGINT, intcatcher);
+#ifdef SV_INTERRUPT
+ /* This is for SunOS and other modern BSD derivatives.
+ It means that system calls (like read()) are not restarted
+ after an interrupt. This is necessary so interrupting a
+ read() or readline() call works as expected.
+ XXX On old BSD (pure 4.2 or older) you may have to do this
+ differently! */
+ siginterrupt(SIGINT, 1);
+#endif
}
int