1 --- busybox-1.20.0/loginutils/getty.c
2 +++ busybox-1.20.0-getty/loginutils/getty.c
3 @@ -561,8 +561,14 @@ int getty_main(int argc UNUSED_PARAM, ch
5 fd = open("/dev/tty", O_RDWR | O_NONBLOCK);
7 + /* TIOCNOTTY sends SIGHUP to the foreground
8 + * process group - which may include us!
9 + * Make sure to not die on it:
11 + sighandler_t old = signal(SIGHUP, SIG_IGN);
14 + signal(SIGHUP, old);