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

From Andrew Dunstan
Subject Re: win2k, service, pg_ctl, popen, etc
Date
Msg-id 40FE8A2B.9050303@dunslane.net
Whole thread Raw
In response to Re: win2k, service, pg_ctl, popen, etc  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers-win32

Bruce Momjian wrote:

>The version check is centralized in one place, exec.c, and I don't want
>to have different behaviors on Win32 and Unix if we can help it.  Let's
>go with the system() into a temp file.
>
>
>

I had another thought - would the popen work for a nonconsole app (e.g.
a service) if we redirect stdin from the nul device (and maybe also do
stderr via 2>&1), so it doesn't try to inherit from the caller, which
doesn't have these?

cheers

andrew

pgsql-hackers-win32 by date:

Previous
From: "Dave Page"
Date:
Subject: Re: win2k, service, pg_ctl, popen, etc
Next
From: Andrew Dunstan
Date:
Subject: Re: win2k, service, pg_ctl, popen, etc