Mercurial > hg > octave-lyh
diff src/oct-hist.cc @ 2554:f7e3d23f0a8f
[project @ 1996-11-21 01:41:57 by jwe]
author | jwe |
---|---|
date | Thu, 21 Nov 1996 01:43:06 +0000 |
parents | 06595bc7f2d0 |
children | 18395aaeafb7 |
line wrap: on
line diff
--- a/src/oct-hist.cc +++ b/src/oct-hist.cc @@ -427,12 +427,12 @@ // Ignore interrupts while we are off editing commands. Should we // maybe avoid using system()? - volatile sig_handler *saved_sigint_handler - = octave_set_signal_handler (SIGINT, SIG_IGN); + volatile octave_interrupt_handler *old_interrupt_handler + = octave_ignore_interrupts (); system (cmd.c_str ()); - octave_set_signal_handler (SIGINT, saved_sigint_handler); + octave_set_interrupt_handler (old_interrupt_handler); // Write the commands to the history file since parse_and_execute // disables command line history while it executes.