[Top][All Lists]

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

Web server catch keyboard interrupt and release port

From: Zelphir Kaltstahl
Subject: Web server catch keyboard interrupt and release port
Date: Tue, 15 Sep 2020 21:49:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.10.0

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



reply via email to

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