chiark / gitweb /
common: use /dev/null as stdin when calling subprocess.Popen()
authorrelan <email@hidden>
Mon, 5 Feb 2018 12:34:42 +0000 (15:34 +0300)
committerrelan <email@hidden>
Mon, 5 Feb 2018 12:34:42 +0000 (15:34 +0300)
commit946a1461f2c60bb043f8e078421beef35f6919c0
tree25d917604a6a1804072b5a42be078732ad6a7261
parent5db86215f6a4ebf6bde90ea8b9e6e7beca80747c
common: use /dev/null as stdin when calling subprocess.Popen()

We always want to run all utilities non-interactively. By default
subprocess.Popen() inherits stdin descriptor from parent process, i.e.
when fdroid is run from an interactive shell, subprocesses may expect
input from it.

Reading from /dev/null immediately returns EOF, failing any user prompt
and preventing us from hang.
fdroidserver/common.py