From 71e7568fcb8132899f366b37c32645fd5a40dc4b Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Wed, 30 Dec 2015 13:05:11 -0800 Subject: Start test fixtures in new session to avoid propagating signals (i.e., Ctrl-C) --- test/service.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/service.py b/test/service.py index b986a71..ea29c33 100644 --- a/test/service.py +++ b/test/service.py @@ -1,4 +1,5 @@ import logging +import os import re import select import subprocess @@ -52,6 +53,7 @@ class SpawnedService(threading.Thread): self.child = subprocess.Popen( self.args, + preexec_fn=os.setsid, # to avoid propagating signals env=self.env, bufsize=1, stdout=subprocess.PIPE, -- cgit v1.2.1