Mercurial > octave
diff libinterp/corefcn/toplev.cc @ 26826:20881d195d20
fix handling of SIGTSTP (bug #51903)
* interpreter.cc (interpreter::interpreter): Unblock SIGTSTP signal in
interpreter thread.
* toplev.cc (Fsystem): Unblock SIGTSTP before creating a subprocess.
* main.in.cc (main): Block SIGTSTP when starting Octave process so it
is blocked in all threads.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 03 Mar 2019 19:20:50 +0000 |
parents | 8af641520aa9 |
children | 711f23332204 |
line wrap: on
line diff
--- a/libinterp/corefcn/toplev.cc Sun Mar 03 10:19:36 2019 +0000 +++ b/libinterp/corefcn/toplev.cc Sun Mar 03 19:20:50 2019 +0000 @@ -285,6 +285,7 @@ frame.add_fcn (restore_signal_mask, get_signal_mask ()); octave_unblock_async_signals (); + octave_unblock_signal_by_name ("SIGTSTP"); if (type == et_async) retval(0) = octave_async_system_wrapper (cmd_str.c_str ());