diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 47dac59..8e62718 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -4248,12 +4248,14 @@ Tells gdb whether to control the GNU/Linux inferior in asynchronous mode."), &maintenance_set_cmdlist, &maintenance_show_cmdlist); +#if 0 /* Block SIGCHLD by default. Doing this early prevents it getting unblocked if an exception is thrown due to an error while the inferior is starting (sigsetjmp/siglongjmp). */ sigemptyset (&mask); sigaddset (&mask, SIGCHLD); sigprocmask (SIG_BLOCK, &mask, NULL); +#endif /* Save this mask as the default. */ sigprocmask (SIG_SETMASK, NULL, &normal_mask);