|
From: Petr M. <mi...@ph...> - 2010-02-17 22:41:28
|
> Hello > > I have tried to see what happens with pressing CTRL+C. > > http://old.nabble.com/Re%3A-towards-4.4-(ctrl%2Bc-issue-for-gnuplot.exe(windows))-p27527817.html > http://old.nabble.com/Re%3A-towards-4.4-(ctrl%2Bc-issue-for-gnuplot.exe(windows))-p27527993.html > > This problem is not easy to fix completely. At this moment, I vote to Benjamin's proposal. > > +#if defined(WGP_CONSOLE) > + (void) signal(SIGINT, SIG_IGN); > +#else > (void) signal(SIGINT, (sigfunc) inter); > +#endif > > Addition of something like /* Fix me */ is preferred for me. > ********** > +#if defined(WGP_CONSOLE) > + /* Fix me. CTRC+C crashes console mode gnuplot for windows. > failure of longjmp() is not easy to fix so that the signal of SIGINT is just ignored > at the moment */ > ******* Thanks, I've committed the code to cvs. Petr |