1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-12 21:01:52 +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:
Tom Lane
2001-08-04 00:14:43 +00:00
parent 2b769c8212
commit dad8e410d0
6 changed files with 91 additions and 72 deletions

View File

@ -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);