import signal again

pull/182/head
Anthony Leung 2024-07-05 10:46:04 +00:00
rodzic 13d0654fea
commit 60b5796d6a
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -385,6 +385,7 @@ def _execute(args):
""" """
print('Reloading...') print('Reloading...')
reload_state.reload_pending = True #signal for Exeute to know whether it is a real external SIGTERM or our own reload_state.reload_pending = True #signal for Exeute to know whether it is a real external SIGTERM or our own
import signal # signal is not in scope for some reason
os.kill(os.getpid(), signal.SIGTERM) # sigterm works on windows and posix. raise_signal doesnt seem to send to right proces os.kill(os.getpid(), signal.SIGTERM) # sigterm works on windows and posix. raise_signal doesnt seem to send to right proces
return new_files return new_files