Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!bloom-beacon!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.unix.questions Subject: Re: Fun with ignoreeof Message-ID: <1948@bsu-cs.UUCP> Date: 25 Jan 88 16:20:49 GMT References: <2248@tekcrl.TEK.COM> <23236@hi.unm.edu> <1403@quacky.mips.COM> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 16 >>kill -9 $$ > >Actually, it's nicer to use "kill -1 0", which will log you out if you >are in sh, and will cause you to exit the current shell in csh (I may >be wrong on this with respect to subshells). On bsu-cs, two very popular commands are called "suicide" and "die". Relevant lines from "suicide" are: kill (-1, SIGTERM); /* give each process a software termination signal */ sleep (3); /* and give it 3 seconds to clean up */ kill (-1, SIGKILL); /* then kill each process with extreme prejudice */ "Die" is more drastic, using SIGKILL unconditionally. -- Rahul Dhesi UUCP: !{iuvax,pur-ee,uunet}!bsu-cs!dhesi