Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!awdprime!toysrus!dcm From: dcm@toysrus.uucp (dcm) Newsgroups: comp.lang.c Subject: Re: Catching ^C and ^Z Message-ID: <3367@awdprime.UUCP> Date: 5 Sep 90 15:11:11 GMT References: <29167@netnews.upenn.edu> Sender: news@awdprime.UUCP Reply-To: dcm@toysrus.austin.ibm.com (Craig Miller) Organization: IBM AWD, Austin, TX Lines: 24 In article gaynor@sparky.rutgers.edu (Silver) writes: >deen@utopia.rutgers.edu: > >SunOS signal(3): >> SIGKILL 9 kill (cannot be caught, blocked, or ignored) >> SIGSTOP 17 stop (cannot be caught, blocked, or ignored) > >Therein lies the incentive to capture the characters before a shell can see >them. Exactly what characters are you talking about? At least on the various Un*ces I've been on, *all* keyboard generated signals are catchable. Signal(SIG_IGN) has always done the job for me... Why complicate things with ioctls? -------- Craig Miller, contractor @ IBM AWD, Austin (I don't speak for IBM) UUCP: ..!uunet!cs.utexas.edu!ibmaus!auschs!toysrus.austin.ibm.com!dcm "Just because it works doesn't means it's right, stupid!" "You should never install code you do not understand." "If you knowningly install broken code, you should be shot. Period." "Programmers have to be accountable for their code."