diff src/oct-hist.cc @ 1443:cd6c9be7337c

[project @ 1995-09-19 21:54:56 by jwe]
author jwe
date Tue, 19 Sep 1995 21:58:28 +0000
parents ed5757e3333b
children 3bb3848031a0
line wrap: on
line diff
--- a/src/oct-hist.cc
+++ b/src/oct-hist.cc
@@ -547,9 +547,12 @@
   // Ignore interrupts while we are off editing commands.  Should we
   // maybe avoid using system()?
 
-  volatile sig_handler *saved_sigint_handler = signal (SIGINT, SIG_IGN);
+  volatile sig_handler *saved_sigint_handler
+    = octave_set_signal_handler (SIGINT, SIG_IGN);
+
   system (cmd);
-  signal (SIGINT, saved_sigint_handler);
+
+  octave_set_signal_handler (SIGINT, saved_sigint_handler);
 
   // Write the commands to the history file since parse_and_execute
   // disables command line history while it executes.