]>
Commit | Line | Data |
---|---|---|
6fc1dd75 | 1 | --- sysvinit-2.78/src/sulogin.c.sigint Wed Apr 19 12:25:18 2000 |
2 | +++ sysvinit-2.78/src/sulogin.c Wed Apr 19 12:26:25 2000 | |
3 | @@ -312,6 +312,8 @@ | |
4 | * Try to execute a shell. | |
5 | */ | |
6 | setenv("SHELL", sushell, 1); | |
7 | + signal(SIGINT, SIG_DFL); | |
8 | + signal(SIGTSTP, SIG_DFL); | |
9 | execl(sushell, shell, NULL); | |
10 | perror(sushell); | |
11 | ||
12 | @@ -358,6 +360,8 @@ | |
13 | /* | |
14 | * See if we need to open an other tty device. | |
15 | */ | |
16 | + signal(SIGINT, SIG_IGN); | |
17 | + signal(SIGTSTP, SIG_IGN); | |
18 | if (optind < argc) tty = argv[optind]; | |
19 | if (tty) { | |
20 | if ((fd = open(tty, O_RDWR)) >= 0) { |