For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > July 2006 > Re: is it necessary to be a session leader to attach psuedo terminal as a controlling









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: is it necessary to be a session leader to attach psuedo terminal as a controlling
pankajtakawale

2006-07-24, 7:59 am


Maxim Yegorushkin wrote:

> pankajtakawale wrote:
>
> Is there a reason why you can't block SIGHUP before spawning a child?
> This way children would not receive SIGHUP since the signal mask is
> inherited by child processed.
>

Yes blocking SIGHUP is one way. I dont want block SIGHUP in all cases.
foreground process wouldnt receive SIGHUP if I close the session. I
think I have to cpmpromise somewhere.

> http://www.opengroup.org/onlinepubs...igprocmask.html
>
> P.S. If you are using Solaris 8, it's broken in this regard. The signal
> mask on this operating system is only inherited by threads, not child
> processes.


Thanks

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com