autotest: Close all non standard fds for Lucifer
Lucifer interprets fd 3 as LogDog output.
BUG=chromium:877544
TEST=None
Change-Id: I4ac64a080be05311b4a97e747f9b392d7b1ca5f7
Reviewed-on: https://chromium-review.googlesource.com/1188803
Reviewed-by: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
diff --git a/venv/lucifer/eventlib.py b/venv/lucifer/eventlib.py
index 21844a7..cd13355 100644
--- a/venv/lucifer/eventlib.py
+++ b/venv/lucifer/eventlib.py
@@ -88,7 +88,7 @@
@param returns: exit status of command.
"""
logger.debug('Starting event command with %r', args)
- with subprocess32.Popen(args, stdout=PIPE) as proc:
+ with subprocess32.Popen(args, stdout=PIPE, close_fds=True) as proc:
logger.debug('Event command child pid is %d', proc.pid)
_handle_subprocess_events(event_handler, proc)
logger.debug('Event command child with pid %d exited with %d',