Interruptible calculations

Vincent Lefevre vincent at vinc17.org
Wed Apr 15 15:16:41 CEST 2009


On 2009-04-15 18:06:07 +0800, Jafet wrote:
> I suppose I will just spawn a subprocess and kill it. However it would
> be nice to know the workable alternatives, if any.

I wonder if trapping the signal and using longjmp could be done.
But warning:

https://www.securecoding.cert.org/confluence/display/seccode/SIG32-C.+Do+not+call+longjmp()+from+inside+a+signal+handler

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list