diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-03-03 10:42:05 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-03-03 10:42:05 +0000 |
commit | fd75329e81b37b8764dff628df761e14736be183 (patch) | |
tree | 74e9aa73841f3d813d394f508e3c74f1cee16297 /src | |
parent | d657843a9a80b999d1f5735c79f50b95c67bd720 (diff) |
Fix copy-pasto in the patch to allow background writer to run during
recovery: if background writer or pgstat process dies during recovery (or
any other child process, but those two are the only ones running), send
SIGQUIT to the startup process using correct pid.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index f7637d15db2..0ca52dc1c71 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.574 2009/02/25 11:07:43 heikki Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.575 2009/03/03 10:42:05 heikki Exp $ * * NOTES * @@ -2500,7 +2500,7 @@ HandleChildCrash(int pid, int exitstatus, const char *procname) (errmsg_internal("sending %s to process %d", (SendStop ? "SIGSTOP" : "SIGQUIT"), (int) StartupPID))); - signal_child(BgWriterPID, (SendStop ? SIGSTOP : SIGQUIT)); + signal_child(StartupPID, (SendStop ? SIGSTOP : SIGQUIT)); } /* Take care of the bgwriter too */ |