Closed LocutusOfBorg closed 4 years ago
Hi, note that this is just to check if process is still running or has been killed. The script send a SIGTERM signal and then wait until process is killed through -0.
From kill(2) manual:
"If sig is 0, then no signal is sent, but existence and permission checks are still performed; this can be used to check for the existence of a process ID or process group ID that the caller is permitted to signal."
why does it not exit then? how long does it take for the script to exit?
However it is true that kill script is not working, but seems related to Python-Telegram-Bot framework catching the signal before our code handler... A forcekill script has been added to send SIGKILL while the normal kill issue is solved.
thanks!
Fixed by making Bot idle without using python-telegram-bot idle function :)
The kill command should send either -9 or -15 to stop the process, instead of -0 There is no signal 0 in unix.