The dreaded reply-to strikes again... On 4/9/06, Jay Savage <[EMAIL PROTECTED]> wrote: > On 4/9/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > > On Sun, 2006-09-04 at 11:52 -0700, Randal L. Schwartz wrote: > > > Huh? What UNIX system does this? > > > > Ubuntu <http://www.ubuntu.com/> > > > > >From man signal: > > > > Signal Value Action Comment > > > > ------------------------------------------------------------------------- > > SIGHUP 1 Term Hangup detected on controlling > > terminal > > or death of controlling process > > > > Most UNIXes do this. If you close your terminal, all its sub-processes > > die via HUP. > > > > There are a couple of things to watch out for, here. First, this isn't > unix behavior, it's Linux behavior, although when it snuck in, I'm not > sure. The parent exiting on on any other *nix platform will not send > SIGHUP to the children. That includes, for those who are keeping > track, OS X. It isn't, so far as I know, in the POSIX spec, either. > anything that depends on this os quirk isn't portable. > > Second, it's a pretty silly behavior. SIGHUP is probably the second > most frequently trapped signal--right behind SIGTERM--and telling all > the children to restart when the parent dies unexpectedly probably > isn't what you want in that situation. If it is, you should probably > be sending them to (x)inetd, anyway. > > Keep track of your children. don't expect the OS to take care of them > for you because it can't and won't. > > -- jay > -------------------------------------------------- > This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] > private and confidential > > daggerquill [at] gmail [dot] com > http://www.tuaw.com http://www.dpguru.com http://www.engatiki.org > > values of β will give rise to dom! >
-- -------------------------------------------------- This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] private and confidential daggerquill [at] gmail [dot] com http://www.tuaw.com http://www.dpguru.com http://www.engatiki.org values of β will give rise to dom!