Compile this program and run it - I think it works better and is less a "hack":
#include <signal.h>
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