Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!decuac!avolio From: avolio@decuac.DEC.COM (Frederick M. Avolio) Newsgroups: net.unix Subject: Re: a little help with some csh source Message-ID: <983@decuac.DEC.COM> Date: Fri, 4-Jul-86 00:57:01 EDT Article-I.D.: decuac.983 Posted: Fri Jul 4 00:57:01 1986 Date-Received: Sat, 5-Jul-86 04:56:28 EDT References: <5273@topaz.RUTGERS.EDU> Organization: ULTRIX Applications Center, MD Lines: 20 Keywords: onintr, interrupts? kill signals? unsure... Summary: intr catches INT signal In article <5273@topaz.RUTGERS.EDU>, gaynor@topaz.RUTGERS.EDU (Silver) writes: > Hi. I have some cshell source code that isn't performing quite > the way I intend. I have extracted the relevant code, below. > ... > Now, when the process is in the foreground, and I interrupt it > it with ^C, it halts nicely, cleaning itself up. However, when > the process is in the background, and I send it a kill signal, > it just plain rolls over and dies. No clean up is performed How do you kill it? Do you send it an SIGINT? (kill -2 pid) Or just a "kill pid" which sends a SIGTERM (signal 15)? It works if you send an interrupt (kill -2 pid). Use the Bourne shell for programming.... more control over such things (it allows you to specify the signals to catch). -- Fred @ DEC Ultrix Applications Center INET: avolio@decuac.DEC.COM * Fight the Fight * UUCP: {decvax,seismo,cbosgd}!decuac!avolio * Rescue the Unborn *