Mercurial > hg > octave-avbm
changeset 2553:f57c52dcd5ed
[project @ 1996-11-21 01:38:48 by jwe]
author | jwe |
---|---|
date | Thu, 21 Nov 1996 01:38:48 +0000 |
parents | b9f178af9281 |
children | f7e3d23f0a8f |
files | src/pt-plot.cc |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pt-plot.cc +++ b/src/pt-plot.cc @@ -169,6 +169,9 @@ sigemptyset (&set); sigaddset (&set, SIGINT); sigprocmask (SIG_BLOCK, &set, &oset); +#else + volatile octave_interrupt_handler *old_interrupt_handler + = octave_ignore_interrupts (); #endif plot_stream = new oprocstream (plot_prog.c_str ()); @@ -194,6 +197,8 @@ #if defined (HAVE_POSIX_SIGNALS) sigprocmask (SIG_SETMASK, &oset, 0); +#else + octave_set_interrupt_handler (old_interrupt_handler); #endif }