Hong MinheeH
Denoβ€’3y 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
using
Deno.addSignalListener("SIGINT", ...)
API, but Deno always exits when it receives a
SIGINT
whether I put
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
. Is there any way to do it?
Was this page helpful?