From: Jason Molenda Date: Fri, 6 Feb 1998 01:22:01 +0000 (+0000) Subject: * top.c (do_nothing): Remove signal handler after signal is caught. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d743926f496f69fb86a532f6db856b41e357b75;p=binutils-gdb.git * top.c (do_nothing): Remove signal handler after signal is caught. Helpful for SYSV systems where two ^-\s will cause problems. Should have no effect on BSD systems. --- diff --git a/gdb/top.c b/gdb/top.c index 054bcc781df..fd5f316e2e2 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