Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!tdatirv!sarima From: sarima@tdatirv.UUCP (Stanley Friesen) Newsgroups: comp.lang.c Subject: Re: Catching ^C and ^Z Message-ID: <141@tdatirv.UUCP> Date: 5 Sep 90 15:47:02 GMT References: <29167@netnews.upenn.edu> Reply-To: sarima@tdatirv.UUCP (Stanley Friesen) Organization: Teradata Corp., Irvine Lines: 28 In article gaynor@sparky.rutgers.edu (Silver) writes: >weisen@eniac.seas.upenn.edu: >> Under BSD, you should be able to do something like: >> signal(SIGINT,SIG_IGN); >> signal(SIGQUIT,SIG_IGN); >> to IGNore the signals. >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. Except that this is totally irrelevant. SIGKILL and SIGSTOP *cannot* be generated by any keystroke sequence on a terminal! They may *only* be generated by software means, such as kill(1) or kill(2). In addition only the owner of the process and the superuser are allowed to do this, so they do *not* effect the security of a lock program. --------------------------------- uunet!tdatirv!sarima (Stanley Friesen) (Teradata Corporation) - - - - - -