Interruptible calculations

Jafet jafet.vixle at gmail.com
Wed Apr 15 12:06:07 CEST 2009


On Wed, Apr 15, 2009 at 8:07 AM, Vincent Lefevre <vincent at vinc17.org> wrote:
>
> On 2009-04-14 21:46:17 +0100, James Youngman wrote:
> > If all you need to do is quit cleanly, just don't catch SIGINT.    A
> > fatal exit is the default for SIGINT anyway.
>
> If I understand correctly, Jafet wants to "quit a calculation and
> return to the prompt", not to quit the program. So, SIGINT must be
> catched (unless a subprocess is used).
>

My original post was a bit misleading, but that is indeed the intention.

I suppose I will just spawn a subprocess and kill it. However it would
be nice to know the workable alternatives, if any.

--
Jafet


More information about the gmp-discuss mailing list