aboutsummaryrefslogtreecommitdiff
path: root/src/backend/postmaster/postmaster.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-08-04 00:14:43 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-08-04 00:14:43 +0000
commitdad8e410d0c4329ec68392c442e1f9dafc8ec17c (patch)
tree5e512caa61cd99f2968ff3707c9e058d5760e118 /src/backend/postmaster/postmaster.c
parent2b769c82126eeb87eb02a6c1a301beb4edd14407 (diff)
downloadpostgresql-dad8e410d0c4329ec68392c442e1f9dafc8ec17c.tar.gz
postgresql-dad8e410d0c4329ec68392c442e1f9dafc8ec17c.zip
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.
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
-rw-r--r--src/backend/postmaster/postmaster.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index fb51695e98b..511f9bc0ee6 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -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;
}