summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-04-23 20:31:01 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2002-04-23 20:31:01 +0000
commit3c74d10b5445d202e247702fae241f3aa7008506 (patch)
tree9f9fe67a24afe65ae0757ed642d8f05a6b84a529 /Python/pythonrun.c
parentc6307b7ca434cec4f4c222ce2a2ecafbdf43cb60 (diff)
downloadcpython-3c74d10b5445d202e247702fae241f3aa7008506.tar.gz
Ignore SIGXFSZ.
The SIGXFSZ signal is sent when the maximum file size limit is exceeded (RLIMIT_FSIZE). Apparently, it is also sent when the 2GB file limit is reached on platforms without large file support. The default action for SIGXFSZ is to terminate the process and dump core. When it is ignored, the system call that caused the limit to be exceeded returns an error and sets errno to EFBIG. Python always checks errno on I/O syscalls, so there is nothing to do with the signal.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 0ca1f42c6c..324bc89506 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1357,6 +1357,9 @@ initsigs(void)
#ifdef SIGXFZ
signal(SIGXFZ, SIG_IGN);
#endif
+#ifdef SIGXFSZ
+ signal(SIGXFSZ, SIG_IGN);
+#endif
#endif /* HAVE_SIGNAL_H */
PyOS_InitInterrupts(); /* May imply initsignal() */
}