cygwin-innards-guru [Chris] - please comment RE: Windows server executable (as opposed to current CLI executable)

Christopher Faylor cgf@redhat.com
Sun Apr 29 18:28:00 GMT 2001


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



More information about the Cygwin-xfree mailing list