Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!samsung!rex!uflorida!stat!sun13!prism!gt0815c From: gt0815c@prism.gatech.EDU (Joseph Minieri) Newsgroups: comp.unix.misc Subject: Re: A real hack way to "lock my tty" Message-ID: <14233@hydra.gatech.EDU> Date: 28 Sep 90 13:54:58 GMT References: <2863@litchi.bbn.com> Organization: Georgia Institute of Technology Lines: 21 Compile this program and run it - I think it works better and is less a "hack": #include main() { char test[100]; signal(2,SIG_IGN); signal(3,SIG_IGN); signal(15,SIG_IGN); signal(18,SIG_IGN); strcpy(test,getpass("Key:")); if(0 == strcmp(getpass("Again:"),test) ) { while(0 != strcmp(test,getpass(""))); } } Joe Minieri