input=None would read stdin from terminal, causing hangs

This commit is contained in:
Edwin Eefting
2020-05-18 20:05:50 +02:00
parent e54c275685
commit 1ffd9a15a3
3 changed files with 14 additions and 2 deletions

View File

@ -364,7 +364,8 @@ class ExecuteNode(Logger):
#determine stdin
if input==None:
stdin=None
#NOTE: Not None, otherwise it reads stdin from terminal!
stdin=subprocess.PIPE
elif isinstance(input,str) or type(input)=='unicode':
self.debug("INPUT > \n"+input.rstrip())
stdin=subprocess.PIPE