This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]