Mercurial > octave
diff libinterp/corefcn/sighandlers.cc @ 24525:a8eb8a734b9d
tweaks to signal handlers
* sighandlers.cc (install_signal_handlers): Don't handle SIGPROF.
(respond_to_pending_signals): Notice SIGVTALRM.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 05 Jan 2018 00:21:08 -0500 |
parents | c5c11b07598a |
children | 194eb4bd202b |
line wrap: on
line diff
--- a/libinterp/corefcn/sighandlers.cc Thu Jan 04 15:38:46 2018 +0100 +++ b/libinterp/corefcn/sighandlers.cc Fri Jan 05 00:21:08 2018 -0500 @@ -137,6 +137,10 @@ static const bool have_sigalrm = octave_get_sig_number ("SIGALRM", &sigalrm); + static int sigvtalrm; + static const bool have_sigvtalrm + = octave_get_sig_number ("SIGVTALRM", &sigvtalrm); + // I/O signals. static int sigio; @@ -223,6 +227,7 @@ else if (have_sigterm && sig == sigterm) my_friendly_exit (sigterm, Vsigterm_dumps_octave_core); else if ((have_sigalrm && sig == sigalrm) + || (have_sigvtalrm && sig == sigvtalrm) || (have_sigio && sig == sigio) || (have_siglost && sig == siglost) || (have_sigxcpu && sig == sigxcpu) @@ -402,7 +407,6 @@ set_signal_handler ("SIGALRM", generic_sig_handler); set_signal_handler ("SIGVTALRM", generic_sig_handler); - set_signal_handler ("SIGPROF", generic_sig_handler); // I/O signals.