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.
This commit is contained in:
Jeremy Hylton 2002-04-23 20:31:01 +00:00
parent 74ce77f0e6
commit 1b0bf9b761
1 changed files with 3 additions and 0 deletions

View File

@ -1357,6 +1357,9 @@ initsigs(void)
#ifdef SIGXFZ #ifdef SIGXFZ
signal(SIGXFZ, SIG_IGN); signal(SIGXFZ, SIG_IGN);
#endif #endif
#ifdef SIGXFSZ
signal(SIGXFSZ, SIG_IGN);
#endif
#endif /* HAVE_SIGNAL_H */ #endif /* HAVE_SIGNAL_H */
PyOS_InitInterrupts(); /* May imply initsignal() */ PyOS_InitInterrupts(); /* May imply initsignal() */
} }