DenoDDeno
Powered by
Hong MinheeH
Denoβ€’4y agoβ€’
4 replies
Hong Minhee

How can I let my program keep running even if it receives SIGINT?

I succeeded to write a program to handle
SIGINT
SIGINT
using
Deno.addSignalListener("SIGINT", ...)
Deno.addSignalListener("SIGINT", ...)
API, but Deno always exits when it receives a
SIGINT
SIGINT
whether I put
Deno.exit()
Deno.exit()
inside the signal handler or not.
[Edit: It was my mistake. Deno keeps running if a signal handler was registered.] I just want my program to reload the configuration file instead of terminating when it receives
SIGINT
SIGINT
. Is there any way to do it?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Can I programatically trigger a SIGINT event?
Ed, Edd n EddyEEd, Edd n Eddy / help
4y ago
How to recover from worker death? It terminates my main program…
jcayzacJjcayzac / help
3y ago
is there a way to deno run in background and keep it running even when i close ssh connection?
FlaffFFlaff / help
16mo ago
How to let google find my website?
LextLLext / help
2y ago