projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run-report: Restore SIGPIPE default handler in subprocess calls
[lttng-tools.git]
/
tests
/
run-report.py
diff --git
a/tests/run-report.py
b/tests/run-report.py
index 73645fd420764c29ad9aea183267b3b7c639f5c0..2e897475a15b854dd9dde8b31228565869f47cf0 100755
(executable)
--- a/
tests/run-report.py
+++ b/
tests/run-report.py
@@
-7,7
+7,7
@@
import Queue
import time
import shlex
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/"
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'
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
test.wait()
# Send ret value to main thread
This page took
0.023067 seconds
and
4
git commands to generate.