=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/io/ox.c,v retrieving revision 1.38 retrieving revision 1.40 diff -u -p -r1.38 -r1.40 --- OpenXM_contrib2/asir2000/io/ox.c 2016/08/24 00:52:50 1.38 +++ OpenXM_contrib2/asir2000/io/ox.c 2017/08/30 09:40:30 1.40 @@ -44,7 +44,7 @@ * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. - * $OpenXM: OpenXM_contrib2/asir2000/io/ox.c,v 1.37 2016/06/29 05:10:14 ohara Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/io/ox.c,v 1.39 2016/08/24 05:33:58 ohara Exp $ */ #include "ca.h" #include "parse.h" @@ -434,7 +434,7 @@ void ox_usr1_handler(int sig) NODE t; #if !defined(VISUAL) && !defined(__MINGW32__) - signal(SIGUSR1,ox_usr1_handler); + set_signal_for_restart(SIGUSR1,ox_usr1_handler); #endif if ( critical_when_signal ) { fprintf(stderr,"usr1 : critical\n"); @@ -448,6 +448,7 @@ void ox_usr1_handler(int sig) bevalf((FUNC)BDY(t),0); fprintf(stderr, "done.\n"); } + LEAVE_SIGNAL_CS_ALL; ox_resetenv("usr1 : return to toplevel by SIGUSR1"); } }