getty: remove now not needed resetting of ALRM to to SIG_DFL
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 22 Oct 2011 04:30:48 +0000 (06:30 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 22 Oct 2011 04:30:48 +0000 (06:30 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
loginutils/getty.c

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