mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Fix handling of SIGCHLD, per recent pghackers discussion: on some
platforms system(2) gets confused unless the signal handler is set to SIG_DFL, not SIG_IGN. pgstats.c now uses pqsignal() as it should, not signal(). Also, arrange for the stats collector process to show a reasonable ID in 'ps', rather than looking like a postmaster.
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.233 2001/07/31 22:55:45 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.234 2001/08/04 00:14:43 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@@ -696,7 +696,7 @@ PostmasterMain(int argc, char *argv[])
|
||||
*/
|
||||
if (pgstat_init() < 0)
|
||||
ExitPostmaster(1);
|
||||
if (pgstat_start() < 0)
|
||||
if (pgstat_start(real_argc, real_argv) < 0)
|
||||
ExitPostmaster(1);
|
||||
|
||||
/*
|
||||
@@ -1488,7 +1488,7 @@ reaper(SIGNAL_ARGS)
|
||||
{
|
||||
fprintf(stderr, "%s: Performance collector exited with status %d\n",
|
||||
progname, exitstatus);
|
||||
pgstat_start();
|
||||
pgstat_start(real_argc, real_argv);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user