summaryrefslogtreecommitdiff
path: root/src/include/pgstat.h
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/include/pgstat.h
parent2b769c82126eeb87eb02a6c1a301beb4edd14407 (diff)
downloadpostgresql-dad8e410d0c4329ec68392c442e1f9dafc8ec17c.tar.gz
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/include/pgstat.h')
-rw-r--r--src/include/pgstat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h
index 51bb00dc16..fc9dc43326 100644
--- a/src/include/pgstat.h
+++ b/src/include/pgstat.h
@@ -5,7 +5,7 @@
*
* Copyright (c) 2001, PostgreSQL Global Development Group
*
- * $Id: pgstat.h,v 1.4 2001/07/05 15:19:40 wieck Exp $
+ * $Id: pgstat.h,v 1.5 2001/08/04 00:14:43 tgl Exp $
* ----------
*/
#ifndef PGSTAT_H
@@ -336,7 +336,7 @@ extern bool pgstat_collect_blocklevel;
* ----------
*/
extern int pgstat_init(void);
-extern int pgstat_start(void);
+extern int pgstat_start(int real_argc, char *real_argv[]);
extern int pgstat_ispgstat(int pid);
extern void pgstat_beterm(int pid);