Path: utzoo!attcan!uunet!snorkelwacker!apple!rutgers!aramis.rutgers.edu!paul.rutgers.edu!sparky.rutgers.edu!gaynor From: gaynor@sparky.rutgers.edu (Silver) Newsgroups: comp.lang.c Subject: Re: Catching ^C and ^Z Message-ID: Date: 5 Sep 90 05:20:25 GMT References: <29167@netnews.upenn.edu> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 17 deen@utopia.rutgers.edu: > [I wanna write a lockscreen.] 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. Regards, [Ag]