]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add setpgid to sandbox instead of cmdline
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 31 Mar 2024 14:35:03 +0000 (16:35 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 2 Apr 2024 10:12:27 +0000 (12:12 +0200)
This makes sure we don't log it in debug mode.

mkosi/run.py

index d8171db3d251e1f8ba094e0a2f94c9312a890c66..938f8e02d20406711a659c10bad398b777a755ce 100644 (file)
@@ -293,7 +293,7 @@ def spawn(
         sandbox and
         subprocess.run(sandbox + ["sh", "-c", "command -v setpgid"], stdout=subprocess.DEVNULL).returncode == 0
     ):
-        cmdline = ["setpgid", "--foreground", "--"] + cmdline
+        sandbox += ["setpgid", "--foreground", "--"]
 
     try:
         with subprocess.Popen(