Re: win2k, service, pg_ctl, popen, etc - Mailing list pgsql-hackers-win32

From Bruce Momjian
Subject Re: win2k, service, pg_ctl, popen, etc
Date
Msg-id 200407221147.i6MBl3L23158@candle.pha.pa.us
Whole thread Raw
In response to Re: win2k, service, pg_ctl, popen, etc  (Claudio Natoli <claudio.natoli@memetrics.com>)
List pgsql-hackers-win32
Claudio Natoli wrote:
>
> > It all happens in exec.c.  The test is simple in Unix.  If it isn't
> > simple in Win32, then we need to work harder to make it happen.
>
> Are we amenable to replacing this popen call with one to CreateProcess with
> i/o handles redirected (as per the STARTUPINFO argument), or do we want to
> concentrate on a common *nix/win32 solution?

I think CreateProcess() is fine.  I can't think of another way to do it.
At least it will be isolated in exec.c.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-hackers-win32 by date:

Previous
From: Darko Prenosil
Date:
Subject: Re: postgres win32 sources
Next
From: Alexander Cohen
Date:
Subject: postgresql.conf