]> git.pld-linux.org Git - packages/SysVinit.git/blob - sysvinit-sigint.patch
- release 22,
[packages/SysVinit.git] / sysvinit-sigint.patch
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) {
This page took 0.092754 seconds and 3 git commands to generate.