Calling RegisterServiceProcess from setsid ?

Pierre A. Humblet
Wed Jun 4 02:17:00 GMT 2003

At 10:03 PM 6/3/2003 -0400, Christopher Faylor wrote:
>On Tue, Jun 03, 2003 at 09:44:20PM -0400, Pierre A. Humblet wrote:
>>Corinna and all,
>>What do you think of the idea of calling RegisterServiceProcess
>>(a function specific to 9x) from setsid()?
>>It has no effect (AFAIK) if the program isn't a service, and 
>>setsid is the ideal spot where it should be called.
>>The only "drawback" is that the service won't terminate at logout
>>time, but I know of no service where that is desired.
>I like the idea but the problem of not logging out wouldn't be in
>the service case as much as the non-service case, would it?

I have tried that but it seems to have no effect. 
That's easy to test: launch inetd from a shell on 9X (it calls
RegisterServiceProcess) and then log off. In my experience it will 
launch one of these irritating termination pop-ups. Someone should
double check though.


More information about the Cygwin-developers mailing list