unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Q about interrupt and catch
@ 2017-06-11 17:50 Mike Gran
  2017-06-12  8:26 ` Thien-Thi Nguyen
  2017-06-13  5:24 ` Alex Vong
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Gran @ 2017-06-11 17:50 UTC (permalink / raw)
  To: guile-user

Hi all,

This is probably a simple question, but, I can't figure it out.

I have a program with a big main loop like this

(while #t
 (let ((c (read-char port)))
   (cond
    ... many different possible operations, depending on c
    )))

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

Any hints?

Thanks,
Mike Gran



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-13  5:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-11 17:50 Q about interrupt and catch Mike Gran
2017-06-12  8:26 ` Thien-Thi Nguyen
2017-06-13  5:24 ` Alex Vong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).