You are not logged in.
Pages: 1
I am writing a kind of daemon and I would like to remove a .pid file when the process is exited or killed. I noticed that atexit.register does not work if the application receives SIGTERM. What is the proper and elegant way to handle it?
Thanks in advance
Offline
Catching the sigterm and exit cleanly should work just fine.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Pages: 1