Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!romp!auschs!awdprime!doorstop.austin.ibm.com!tif From: tif@doorstop.austin.ibm.com (Paul Chamberlain) Newsgroups: comp.unix.shell Subject: Re: Getting HUPed Message-ID: <6030@awdprime.UUCP> Date: 20 Mar 91 21:49:15 GMT References: <53767@mirror.tmc.com> Sender: news@awdprime.UUCP Reply-To: tif@doorstop.austin.ibm.com (Paul Chamberlain) Distribution: na Organization: IBM AWD, Austin Lines: 13 In article <53767@mirror.tmc.com> kiyun@mirror.tmc.com (KiYun Roe) writes: > trap "rm -f /tmp/p$$.* ; exit" 0 1 2 13 15 > >... but it's forking like crazy, Isn't this when you have to do this: trap "rm -f /tmp/p$$.* ; trap 0; exit" 0 1 2 13 15 If 0 is trapped when you try to exit, you trap, and so on ... Paul Chamberlain | I do NOT speak for IBM. IBM VNET: PAULCC AT AUSTIN 512/838-9748 | ...!cs.utexas.edu!ibmchs!auschs!doorstop.austin.ibm.com!tif