This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: Calling RegisterServiceProcess from setsid ?
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-developers at cygwin dot com
- Date: Tue, 3 Jun 2003 22:03:41 -0400
- Subject: Re: Calling RegisterServiceProcess from setsid ?
- References: <3.0.5.32.20030603214420.00809310@mail.attbi.com>
- Reply-to: cygwin-developers at cygwin dot com
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 don't think it matters either way, though. setsid does seem like
the best place for this.
cgf