Commit deaaecdf authored by Bruce Momjian's avatar Bruce Momjian

Prevents possible packet loss from SIGCHLD.

parent a38b0f6c
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.7 1996/09/16 05:40:31 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.8 1996/09/26 03:17:44 momjian Exp $
* *
* NOTES * NOTES
* *
...@@ -435,6 +435,7 @@ ServerLoop() ...@@ -435,6 +435,7 @@ ServerLoop()
fprintf(stderr, "%s: ServerLoop: select failed\n", fprintf(stderr, "%s: ServerLoop: select failed\n",
progname); progname);
return(STATUS_ERROR); return(STATUS_ERROR);
}
/* [TRH] /* [TRH]
* To avoid race conditions, block SIGCHLD signals while we are * To avoid race conditions, block SIGCHLD signals while we are
* handling the request. (both reaper() and ConnCreate() * handling the request. (both reaper() and ConnCreate()
...@@ -443,8 +444,6 @@ ServerLoop() ...@@ -443,8 +444,6 @@ ServerLoop()
*/ */
sigprocmask(SIG_BLOCK, &newsigmask, &oldsigmask); sigprocmask(SIG_BLOCK, &newsigmask, &oldsigmask);
/* sigblock(sigmask(SIGCHLD)); */ /* XXX[TRH] portability */ /* sigblock(sigmask(SIGCHLD)); */ /* XXX[TRH] portability */
}
if (DebugLvl > 1) { if (DebugLvl > 1) {
fprintf(stderr, "%s: ServerLoop: %d sockets pending\n", fprintf(stderr, "%s: ServerLoop: %d sockets pending\n",
progname, nSelected); progname, nSelected);
......
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