In message <[email protected]>
          John Tytgat <[email protected]> wrote:

> In message <[email protected]>
>           Ron <[email protected]> wrote:
> 
> > Is there a problem with the setsid() prototype in unistd.h?
> > setsid() is at the top of the list in the stubs file and 
> > I believe this stops the function from being supported at
> > compile time.
> 
> UnixLib has, AFAICS, a correct prototype for setsid() and also an
> implementation which does nothing but return -1 as functionality wise
> it is not really supported (no session support).
> 
> Is it that what you meant ?
> 
> John.

Ah, no session support, so it is pointless trying to setsid()
What about the group ID, is there any point in setting that
with setpgrp() or setpgid()?

I am new to session's, sessionleaders etc but I guess I wiil
have to check for any conditional use of getsid() elsewhere
in the program. I think if a setsid() is done by the child,
it's session status would only have effect within the 
child's activities, probably just the exec function.
    
I think if vfork() is used or I use waitpid after a fork I
may be able to ensure a logical closing of forks. 

Thanks, Ron M.

_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to