ft_sigintr(), reorder, side effect: if `ft_setflag' then gr_clean() won't be invoked

and can't be invoked anyway
  from inside of the signal handler
This commit is contained in:
Krzysztof Blaszkowski 2013-10-13 22:42:41 +02:00 committed by rlar
parent 06dd6abcf2
commit fde7be49b9
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,6 @@ ft_sigintr(void)
/* Reinstall ft_signintr as the signal handler. */
(void) signal(SIGINT, (SIGNAL_FUNCTION) ft_sigintr);
gr_clean(); /* Clean up plot window */
if (ft_intrpt) { /* check to see if we're being interrupted repeatedly */
fprintf(cp_err, "\nInterrupted again (ouch)\n");
} else {
@ -64,6 +62,8 @@ ft_sigintr(void)
return; /* just return without aborting simulation if ft_setflag = TRUE */
}
gr_clean(); /* Clean up plot window */
/* sjb - what to do for editline???
The following are not supported in editline */
#if defined(HAVE_GNUREADLINE)