aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/top.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 054bcc7..fd5f316 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1914,6 +1914,13 @@ static void
do_nothing (signo)
int signo;
{
+ /* Under System V the default disposition of a signal is reinstated after
+ the signal is caught and delivered to an application process. On such
+ systems one must restore the replacement signal handler if one wishes
+ to continue handling the signal in one's program. On BSD systems this
+ is not needed but it is harmless, and it simplifies the code to just do
+ it unconditionally. */
+ signal (signo, do_nothing);
}
static void