Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6ba159f

Browse files
committed
Ignore SIGXFSZ (if platform has it), so that ulimit violations work like
disk-full conditions instead of provoking a backend crash. Per suggestionfrom Frederic Surleau.
1 parentfddc2d9 commit6ba159f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.308 2003/03/20 04:51:44 momjian Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.309 2003/03/24 22:40:14 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -767,6 +767,10 @@ PostmasterMain(int argc, char *argv[])
767767
pqsignal(SIGCHLD,reaper);/* handle child termination */
768768
pqsignal(SIGTTIN,SIG_IGN);/* ignored */
769769
pqsignal(SIGTTOU,SIG_IGN);/* ignored */
770+
/* ignore SIGXFSZ, so that ulimit violations work like disk full */
771+
#ifdefSIGXFSZ
772+
pqsignal(SIGXFSZ,SIG_IGN);/* ignored */
773+
#endif
770774

771775
/*
772776
* Reset whereToSendOutput from Debug (its starting state) to None.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp