]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Default to /dev/null for stdin in spawn() as well
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 4 Apr 2024 09:09:26 +0000 (11:09 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 4 Apr 2024 09:10:45 +0000 (11:10 +0200)
mkosi/run.py

index 6b8cfbd55134132c209d814382fdbb3a5ef98ceb..42933dd805c2657bd7a317cb5f0a3029c83f0698 100644 (file)
@@ -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"),