mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
* utilunix.c (my_system): Set up default signal handlers for childs.
This commit is contained in:
parent
ddfdbc4138
commit
5d2a84f00d
@ -1,3 +1,7 @@
|
||||
1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* utilunix.c (my_system): Set up default signal handlers for childs.
|
||||
|
||||
Tue Apr 13 07:14:10 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* slint.c (getch): Quit MC when SLang_getkey returns an error. Looking
|
||||
|
@ -274,8 +274,10 @@ int my_system (int flags, const char *shell, const char *command)
|
||||
return -1;
|
||||
}
|
||||
if (pid == 0){
|
||||
sigaction (SIGINT, &save_intr, NULL);
|
||||
sigaction (SIGQUIT, &save_quit, NULL);
|
||||
signal (SIGINT, SIG_DFL);
|
||||
signal (SIGQUIT, SIG_DFL);
|
||||
signal (SIGTSTP, SIG_DFL);
|
||||
signal (SIGCHLD, SIG_DFL);
|
||||
|
||||
#if 0
|
||||
prepare_environment ();
|
||||
@ -496,7 +498,6 @@ int mc_doublepopen (int inhandle, int inlen, pid_t *the_pid, char *command, ...)
|
||||
case 0: {
|
||||
sigaction (SIGINT, &save_intr, NULL);
|
||||
sigaction (SIGQUIT, &save_quit, NULL);
|
||||
|
||||
switch (pid = fork ()) {
|
||||
case -1:
|
||||
closepipes ();
|
||||
|
Loading…
Reference in New Issue
Block a user