[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q about interrupt and catch

From: Thien-Thi Nguyen
Subject: Re: Q about interrupt and catch
Date: Mon, 12 Jun 2017 10:26:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

() "Mike Gran" <address@hidden>
() Sun, 11 Jun 2017 10:50:49 -0700

   I want to make it so, when the program receives a SIGINT, it
   aborts the operation in progress and restarts this big main

Use ‘sigaction’ and a periodic check.  For example:

Attachment: foo
Description: application/scheme

This does not restart the big main loop, but it does show how to
integrate ‘sigaction’ into normal control flow.  Mod to taste...

Thien-Thi Nguyen -----------------------------------------------
 (defun responsep (query)
   (pcase (context query)
     (`(technical ,ml) (correctp ml))
     ...))                              748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]