Skip to content
Snippets Groups Projects
Commit 3394741a authored by Daniel Silverstone's avatar Daniel Silverstone
Browse files

sandbox/_sandboxchroot.py: Silence warning about preexec_fn


We are super-careful to not use threads in places where we might use
Popen and as such this warning is save to quash.

Signed-off-by: default avatarDaniel Silverstone <daniel.silverstone@codethink.co.uk>
parent 63c6e6b1
No related branches found
No related tags found
1 merge request!892Fix lint issues
......@@ -146,7 +146,7 @@ class SandboxChroot(Sandbox):
try:
with _signals.suspendable(suspend_proc, resume_proc), _signals.terminator(kill_proc):
process = subprocess.Popen(
process = subprocess.Popen( # pylint: disable=subprocess-popen-preexec-fn
command,
close_fds=True,
cwd=os.path.join(rootfs, cwd.lstrip(os.sep)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment