Commit 6ba159f9 authored by Tom Lane's avatar Tom Lane

Ignore SIGXFSZ (if platform has it), so that ulimit violations work like

disk-full conditions instead of provoking a backend crash.  Per suggestion
from Frederic Surleau.
parent fddc2d94
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.308 2003/03/20 04:51:44 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.309 2003/03/24 22:40:14 tgl Exp $
* *
* NOTES * NOTES
* *
...@@ -767,6 +767,10 @@ PostmasterMain(int argc, char *argv[]) ...@@ -767,6 +767,10 @@ PostmasterMain(int argc, char *argv[])
pqsignal(SIGCHLD, reaper); /* handle child termination */ pqsignal(SIGCHLD, reaper); /* handle child termination */
pqsignal(SIGTTIN, SIG_IGN); /* ignored */ pqsignal(SIGTTIN, SIG_IGN); /* ignored */
pqsignal(SIGTTOU, SIG_IGN); /* ignored */ pqsignal(SIGTTOU, SIG_IGN); /* ignored */
/* ignore SIGXFSZ, so that ulimit violations work like disk full */
#ifdef SIGXFSZ
pqsignal(SIGXFSZ, SIG_IGN); /* ignored */
#endif
/* /*
* Reset whereToSendOutput from Debug (its starting state) to None. * Reset whereToSendOutput from Debug (its starting state) to None.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment