From: Daan De Meyer Date: Thu, 4 Apr 2024 09:09:26 +0000 (+0200) Subject: Default to /dev/null for stdin in spawn() as well X-Git-Tag: v23~33^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11280fd668a7db93ffed6c5f35134f04fb4aa4cb;p=thirdparty%2Fmkosi.git Default to /dev/null for stdin in spawn() as well --- diff --git a/mkosi/run.py b/mkosi/run.py index 6b8cfbd55..42933dd80 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -271,6 +271,9 @@ def spawn( # output. stdout = sys.stderr + if stdin is None: + stdin = subprocess.DEVNULL + env = { "PATH": os.environ["PATH"], "TERM": os.getenv("TERM", "vt220"),