--- postmaster.c.orig Thu Dec 21 10:51:29 2000 +++ postmaster.c Thu Dec 21 11:49:19 2000 @@ -1472,6 +1472,7 @@ reaper(SIGNAL_ARGS) #endif int exitstatus; int pid; /* process id of dead backend */ + int errno_orig = errno; PG_SETMASK(&BlockSig); @@ -1522,6 +1523,7 @@ reaper(SIGNAL_ARGS) } CleanupProc(pid, exitstatus); } + errno = errno_orig; pqsignal(SIGCHLD, reaper); if (FatalError)