getty: remove now not needed resetting of ALRM to to SIG_DFL

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2011-10-22 06:30:48 +02:00
parent 7449e18190
commit 94354154c4

View File

@ -254,7 +254,6 @@ static void init_tty_attrs(int speed)
alarm(5); alarm(5);
tcdrain(STDIN_FILENO); tcdrain(STDIN_FILENO);
alarm(0); alarm(0);
signal(SIGALRM, SIG_DFL); /* do not break -t TIMEOUT! */
/* Flush input and output queues, important for modems! */ /* Flush input and output queues, important for modems! */
tcflush(STDIN_FILENO, TCIOFLUSH); tcflush(STDIN_FILENO, TCIOFLUSH);