File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change 13
13
*
14
14
* Copyright (c) 2001-2005, PostgreSQL Global Development Group
15
15
*
16
- * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.89 2005/03/31 23:20:49 tgl Exp $
16
+ * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.90 2005/04/08 00:55:07 neilc Exp $
17
17
* ----------
18
18
*/
19
19
#include "postgres.h"
40
40
#include "libpq/pqsignal.h"
41
41
#include "mb/pg_wchar.h"
42
42
#include "miscadmin.h"
43
+ #include "postmaster/fork_process.h"
43
44
#include "postmaster/postmaster.h"
44
45
#include "storage/backendid.h"
45
46
#include "storage/fd.h"
@@ -576,37 +577,20 @@ pgstat_start(void)
576
577
/*
577
578
* Okay, fork off the collector.
578
579
*/
579
-
580
- fflush (stdout );
581
- fflush (stderr );
582
-
583
- #ifdef __BEOS__
584
- /* Specific beos actions before backend startup */
585
- beos_before_backend_startup ();
586
- #endif
587
-
588
580
#ifdef EXEC_BACKEND
589
581
switch ((pgStatPid = pgstat_forkexec (STAT_PROC_BUFFER )))
590
582
#else
591
- switch ((pgStatPid = fork ()))
583
+ switch ((pgStatPid = fork_process ()))
592
584
#endif
593
585
{
594
586
case -1 :
595
- #ifdef __BEOS__
596
- /* Specific beos actions */
597
- beos_backend_startup_failed ();
598
- #endif
599
587
ereport (LOG ,
600
588
(errmsg ("could not fork statistics buffer: %m" )));
601
589
return 0 ;
602
590
603
591
#ifndef EXEC_BACKEND
604
592
case 0 :
605
593
/* in postmaster child ... */
606
- #ifdef __BEOS__
607
- /* Specific beos actions after backend startup */
608
- beos_backend_startup ();
609
- #endif
610
594
/* Close the postmaster's sockets */
611
595
ClosePostmasterPorts (false);
612
596
You can’t perform that action at this time.
0 commit comments