Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!mailrus!sharkey!b-tech!zeeff From: zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) Newsgroups: comp.mail.elm Subject: Re: newmail also displays on console (bug) Message-ID: <5144@b-tech.ann-arbor.mi.us> Date: 1 Mar 89 14:33:37 GMT References: <316@wubios.wustl.edu> <890001@hpausla.HP.COM> <5142@b-tech.ann-arbor.mi.us> <4774@pbhyf.PacBell.COM> Reply-To: zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) Organization: Branch Technology Ann Arbor, MI Lines: 22 >+>> If you start newmail as newmail& and you use the c shell, newmail >+>> will not be killed when you logout as c shell will nohup it. >+Since we can easily predict that people WILL do this, I say it's a problem >+that should be fixed. Why not just set SIGHUP to be sure it gets killed? > >Newmail already obeys SIGHUP. This particular user's environment is >such that the SIGHUP is not being sent to newmail and that's the problem. No, newmail does NOT set things to die on SIGHUP - it leaves the SIGHUP action in the same state it was when it was run. Try adding signal(SIG_HUP,SIG_DFL); if you want it to die even if someone uses & from csh. -- Jon Zeeff zeeff@b-tech.ann-arbor.mi.us Ann Arbor, MI mailrus!b-tech!zeeff ----- Use lint! -----