lock your terminal for lunch

Derek Andrew andrew at sask.UUCP
Sat Sep 21 17:57:51 AEST 1985


#include <signal.h>
main(){
        char key[64];
	signal(SIGINT, SIG_IGN);
	signal(SIGQUIT, SIG_IGN);
	signal(SIGTSTP, SIG_IGN);
        strncpy(key, getpass("Key: "),sizeof key);
        while(strcmp(key, getpass("Key: "))) ;
}



More information about the Comp.sources.unix mailing list