diff options
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r-- | gdb/fork-child.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c index 8ac3befd78b..6856cf630f5 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -32,7 +32,7 @@ #include "solib.h" #include "filestuff.h" #include "top.h" - +#include "signals-state-save-restore.h" #include <signal.h> /* This just gets used as a default if we can't find SHELL. */ @@ -366,6 +366,8 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env, saying "not parent". Sorry; you'll have to use print statements! */ + restore_original_signals_state (); + /* There is no execlpe call, so we have to set the environment for our child in the global variable. If we've vforked, this clobbers the parent, but environ is restored a few lines down |