/* Make it be sane */
tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
- tty.c_cflag |= HUPCL|CLOCAL;
+ tty.c_cflag |= CREAD|HUPCL|CLOCAL;
+
/* input modes */
tty.c_iflag = ICRNL | IXON | IXOFF;
kill(-1, SIGKILL);
sleep(1);
- /* run everything to be run at "ctrlaltdel" */
+ /* run everything to be run at "shutdown" */
run_actions(SHUTDOWN);
sync();