version 1.2, 1999/09/30 05:03:05 |
version 1.3, 1999/09/30 08:34:25 |
|
|
static struct termios saved_tio; |
static struct termios saved_tio; |
|
|
/* Old interrupt signal handler for read_passphrase. */ |
/* Old interrupt signal handler for read_passphrase. */ |
static RETSIGTYPE (*old_handler)(int sig) = NULL; |
static void (*old_handler)(int sig) = NULL; |
|
|
/* Interrupt signal handler for read_passphrase. */ |
/* Interrupt signal handler for read_passphrase. */ |
|
|
RETSIGTYPE intr_handler(int sig) |
void intr_handler(int sig) |
{ |
{ |
/* Restore terminal modes. */ |
/* Restore terminal modes. */ |
tcsetattr(fileno(stdin), TCSANOW, &saved_tio); |
tcsetattr(fileno(stdin), TCSANOW, &saved_tio); |