From 1fe5f507816575748646157b3c013a8742c3f582 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Fri, 5 May 2017 00:22:32 +0200 Subject: [PATCH] try sigint --- screenless/bureau/photography/photography.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/photography/photography.py b/screenless/bureau/photography/photography.py index 7fbd58a..ab4d820 100644 --- a/screenless/bureau/photography/photography.py +++ b/screenless/bureau/photography/photography.py @@ -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