Mailing List Archive

python/dist/src/Python pythonrun.c,2.159,2.160
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv10266/Python

Modified Files:
pythonrun.c
Log Message:
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.



Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.159
retrieving revision 2.160
diff -C2 -d -r2.159 -r2.160
*** pythonrun.c 13 Apr 2002 08:29:14 -0000 2.159
--- pythonrun.c 23 Apr 2002 20:31:01 -0000 2.160
***************
*** 1358,1361 ****
--- 1358,1364 ----
signal(SIGXFZ, SIG_IGN);
#endif
+ #ifdef SIGXFSZ
+ signal(SIGXFSZ, SIG_IGN);
+ #endif
#endif /* HAVE_SIGNAL_H */
PyOS_InitInterrupts(); /* May imply initsignal() */