diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-12-18 18:45:05 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-12-18 18:45:05 +0000 |
commit | 1f159e562b2a31234edba781218ce5278ea2cfd8 (patch) | |
tree | 347b6c792b54d1d2e16c156bc0f5b6b09a4bacc8 /src/backend/postmaster/postmaster.c | |
parent | 5491233f5245c464be2286ad894448b21ef757db (diff) |
>> Here is a patch for the beos port (All regression tests are OK).
>> xlog.c : special case for beos to avoid 'link' which does not work yet
>> beos/sem.c : implementation of new sem_ctl call (GETPID) and a new
>sem_op
>> flag (IPCNOWAIT)
>> dynloader/beos.c : add a verification of symbol validity (seem that
the
>> loader sometime return OK with an invalid symbol)
>> postmaster.c : add beos forking support for the new checkpoint
process
>> postgres.c : remove beos special case for getrusage
>> beos.h : Correction of a bas definition of AF_UNIX, misc defnitions
>>
>>
>> thanks
>>
>>
>> cyril
Cyril VELTER
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index c119f1301fe..e1c8021ff0c 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.199 2000/12/18 17:33:40 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.200 2000/12/18 18:45:04 momjian Exp $ * * NOTES * @@ -2181,6 +2181,11 @@ SSDataBase(int xlop) fflush(stdout); fflush(stderr); +#ifdef __BEOS__ + /* Specific beos actions before backend startup */ + beos_before_backend_startup(); +#endif + if ((pid = fork()) == 0) /* child */ { char *av[ARGV_SIZE * 2]; @@ -2189,6 +2194,11 @@ SSDataBase(int xlop) char dbbuf[ARGV_SIZE]; char xlbuf[ARGV_SIZE]; +#ifdef __BEOS__ + /* Specific beos actions after backend startup */ + beos_backend_startup(); +#endif + /* Lose the postmaster's on-exit routines and port connections */ on_exit_reset(); @@ -2234,6 +2244,11 @@ SSDataBase(int xlop) /* in parent */ if (pid < 0) { +#ifdef __BEOS__ + /* Specific beos actions before backend startup */ + beos_backend_startup_failed(); +#endif + fprintf(stderr, "%s Data Base: fork failed: %s\n", ((xlop == BS_XLOG_STARTUP) ? "Startup" : ((xlop == BS_XLOG_CHECKPOINT) ? "CheckPoint" : |