X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Frun-report.py;h=2e897475a15b854dd9dde8b31228565869f47cf0;hp=73645fd420764c29ad9aea183267b3b7c639f5c0;hb=4ed5c01eca0a952825962abfc405ba01bba9b52c;hpb=7c0a523d3259f02d3c984f9a19533d88c7079712 diff --git a/tests/run-report.py b/tests/run-report.py index 73645fd42..2e897475a 100755 --- a/tests/run-report.py +++ b/tests/run-report.py @@ -7,7 +7,7 @@ import Queue import time import shlex -from signal import signal, SIGTERM, SIGINT +from signal import signal, SIGTERM, SIGINT, SIGPIPE, SIG_DFL SESSIOND_BIN_NAME = "lttng-sessiond" SESSIOND_BIN_PATH = "src/bin/lttng-sessiond/" @@ -182,7 +182,7 @@ class TestWorker(threading.Thread): env = os.environ env['TEST_NO_SESSIOND'] = '1' - test = subprocess.Popen([bin_path_name], env=env) + test = subprocess.Popen([bin_path_name], env=env, preexec_fn = lambda: signal(SIGPIPE, SIG_DFL)) test.wait() # Send ret value to main thread