try sigint

workspace
Brendan Howell 8 years ago
parent ffa11d18e8
commit 1fe5f50781

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

Loading…
Cancel
Save