comparison Python/pythonrun.c @ 23252:4f335ca3f11c legacy-trunk

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.
author Jeremy Hylton <jeremy@alum.mit.edu>
date Tue, 23 Apr 2002 20:31:01 +0000
parents e2848618bd19
children 8142f8d668a0
comparison
equal deleted inserted replaced
23251:405b291c321d 23252:4f335ca3f11c
1355 signal(SIGPIPE, SIG_IGN); 1355 signal(SIGPIPE, SIG_IGN);
1356 #endif 1356 #endif
1357 #ifdef SIGXFZ 1357 #ifdef SIGXFZ
1358 signal(SIGXFZ, SIG_IGN); 1358 signal(SIGXFZ, SIG_IGN);
1359 #endif 1359 #endif
1360 #ifdef SIGXFSZ
1361 signal(SIGXFSZ, SIG_IGN);
1362 #endif
1360 #endif /* HAVE_SIGNAL_H */ 1363 #endif /* HAVE_SIGNAL_H */
1361 PyOS_InitInterrupts(); /* May imply initsignal() */ 1364 PyOS_InitInterrupts(); /* May imply initsignal() */
1362 } 1365 }
1363 1366
1364 #ifdef Py_TRACE_REFS 1367 #ifdef Py_TRACE_REFS