Ignore SIGXFSZ (if platform has it), so that ulimit violations work like
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 24 Mar 2003 22:40:14 +0000 (22:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 24 Mar 2003 22:40:14 +0000 (22:40 +0000)
disk-full conditions instead of provoking a backend crash.  Per suggestion
from Frederic Surleau.

src/backend/postmaster/postmaster.c

index 13cc86e98c76e79a6d29c501e58550c111cc3218..694a6e5a73f00d9125d78e3115c30e4ed54840f5 100644 (file)
@@ -37,7 +37,7 @@
  *
  *
  * 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
  *
@@ -767,6 +767,10 @@ PostmasterMain(int argc, char *argv[])
        pqsignal(SIGCHLD, reaper);      /* handle child termination */
        pqsignal(SIGTTIN, 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.