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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user