mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Merge branch 'popen-stdin-devnull' into 'master'
common: use /dev/null as stdin when calling subprocess.Popen() See merge request fdroid/fdroidserver!451
This commit is contained in:
commit
eac391c58f
1 changed files with 2 additions and 1 deletions
|
|
@ -2024,7 +2024,8 @@ def FDroidPopenBytes(commands, cwd=None, envs=None, output=True, stderr_to_stdou
|
|||
p = None
|
||||
try:
|
||||
p = subprocess.Popen(commands, cwd=cwd, shell=False, env=process_env,
|
||||
stdout=subprocess.PIPE, stderr=stderr_param)
|
||||
stdin=subprocess.DEVNULL, stdout=subprocess.PIPE,
|
||||
stderr=stderr_param)
|
||||
except OSError as e:
|
||||
raise BuildException("OSError while trying to execute " +
|
||||
' '.join(commands) + ': ' + str(e))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue