kill with sigkill

workspace
Brendan Howell 8 years ago
parent 21a9f8740c
commit a5bf35cfe4

@ -72,7 +72,7 @@ class Photography(Bureau):
print(cmd) print(cmd)
proc = subprocess.Popen(cmd, shell=True, env={"LD_LIBRARY_PATH": mjpg_dir}) proc = subprocess.Popen(cmd, shell=True, env={"LD_LIBRARY_PATH": mjpg_dir})
time.sleep(2) time.sleep(2)
proc.kill(signal.SIGTERM) proc.kill()
time.sleep(1) time.sleep(1)
# copy last image to the tmpfile # copy last image to the tmpfile

Loading…
Cancel
Save