From 3394741a554a1035715294fefed6de3d734a6b89 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone <daniel.silverstone@codethink.co.uk> Date: Wed, 24 Oct 2018 10:56:28 +0100 Subject: [PATCH] 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: Daniel Silverstone <daniel.silverstone@codethink.co.uk> --- buildstream/sandbox/_sandboxchroot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildstream/sandbox/_sandboxchroot.py b/buildstream/sandbox/_sandboxchroot.py index 7a62ed49cd..82de2fa0a2 100644 --- a/buildstream/sandbox/_sandboxchroot.py +++ b/buildstream/sandbox/_sandboxchroot.py @@ -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)), -- GitLab