This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: cygwin-innards-guru [Chris] - please comment RE: Windows server executable (as opposed to current CLI executable)
- To: "Cygx (E-mail)" <cygwin-xfree at cygwin dot com>
- Subject: Re: cygwin-innards-guru [Chris] - please comment RE: Windows server executable (as opposed to current CLI executable)
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Sun, 29 Apr 2001 21:28:54 -0400
- References: <EA18B9FA0FE4194AA2B4CDB91F73C0EF08EF4C@itdomain002.itdomain.net.au>
- Reply-To: cygwin-xfree at cygwin dot com
On Sun, Apr 29, 2001 at 04:31:49PM +1000, Robert Collins wrote:
>Perhaps a better way would be to
>
>before opening the server window, check to see if the parent process is
>a cygwin process
>- if it is, operate as today.
>- if it isn't, hide the console window that was automatically-opened.
>
>I can just hear you saying "but why?".
>1) Lame folk like me that use startx will get the expected behaviour :]
>2) there'll be no need to tail a file to see the output for debugging
>purposes.
>
>Unfortunately I don't know enough about the cygwin innards to point you
>at the appropriate functions - thus the title...
FWIW, getppid () returns '1' when a process does not have a Cygwin parent.
cgf