Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!think.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!AVELON.LERC.NASA.GOV!fsfacca From: fsfacca@AVELON.LERC.NASA.GOV (Tony Facca) Newsgroups: comp.sys.sgi Subject: Re: TRAPPING SIGNALS IN CSH Message-ID: <9104252117.AA13280@avelon.lerc.nasa.gov> Date: 25 Apr 91 21:17:59 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 16 > password. My problem arises when the user hits Ctrl-C when he first logs > in which kills the execution of /etc/cshrc, thus my expiration checker does > not get executed. How can I trap these signals in a csh? > In a Bourne shell all I have to do is trap them with the trap command. > In C Shell you would user "onintr -" to turn off all interrupts, and then "onintr" to turn them back on after the critical section of code. If you have an interrupt handler, you can branch to it using "onintr xxx" where xxx is a label, as in "goto xxx". ----------------------------------------------------------------------------- Tony Facca | fsfacca@avelon.lerc.nasa.gov | phone: 216-433-8318 ----------------------------------------------------------------------------- You are at Witt's end. Passages lead off in *all* directions.