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:
Miguel de Icaza 1999-04-13 19:37:45 +00:00
parent ddfdbc4138
commit 5d2a84f00d
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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 ();