unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Web server catch keyboard interrupt and release port
@ 2020-09-15 19:49 Zelphir Kaltstahl
  2020-09-15 21:02 ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: Zelphir Kaltstahl @ 2020-09-15 19:49 UTC (permalink / raw)
  To: Guile User

Hello Guile Users,

I am experimenting with Guile web server currently and would like to be
able to start and stop it in the REPL and Emacs Geiser REPL. I can
interrupt the (run-server ...) call using ctrl+c, but the bound port is
not released immediately. So I would like to catch the keyboard
interrupt and run code to release the port.

How can I catch the keyboard interrupt? Is there something in the Guile
manual? I could not find it.

(and how to stop the web server from running?)

Regards,
Zelphir

-- 
repositories: https://notabug.org/ZelphirKaltstahl




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

end of thread, other threads:[~2020-09-16  6:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15 19:49 Web server catch keyboard interrupt and release port Zelphir Kaltstahl
2020-09-15 21:02 ` Ricardo Wurmus
2020-09-16  6:42   ` Zelphir Kaltstahl

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).