Re: [HACKERS] BeOS port - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] BeOS port
Date
Msg-id 199906152209.SAA04289@candle.pha.pa.us
Whole thread Raw
In response to BeOS port  ("Cyril VELTER" <cyril@mail.micronet.fr>)
List pgsql-hackers
[Charset ISO-8859-1 unsupported, filtering to ASCII...]
>     Hi alls
> 
>     I'm working on a port of postgres on BeOS (www.be.com). BeOS is not 
> a real UNIX, but it provide a subset of the posix API. At this stage 
> I've a working version ofit. But since 6.4.2, I've a lot of problems 
> (dynamic loading doesn't work any more...) with the fact that 
> postgresmain is call directly instead of the old exec method. BeOS 
> really don't like to do a lot of thing after a fork and before an exec 
> :=(. 
>     I would like to know how hard it would be to add the exec call. As 
> I understand it, I have to get back all global variables and shared 
> memory and perhaps doing something with sockets/file descriptors ? I've 
> a ready solution for shared memory but I need some help regarding the 
> others points.

You can put back the exec fairly easily.  You just need to pass the
proper parameters, and change the fork to an exec.  You can look at the
older code that did the exec for an example, and #ifdef the exec() back
into the code.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Jeff MacDonald
Date:
Subject: Re: [HACKERS] Less then 12hrs since release ...
Next
From: Vadim Mikheev
Date:
Subject: Q: RI and isolevels