Fix processes run with RemoteProcessSafeExit not receiving stdin

Since the process is run in the background through the wrapper bash
script, stdin was disabled there. By explicitly redirecting the bash
process stdin we make sure it is always able to read from it.

Change-Id: I6cb7979aae0a7457919f353cbeb4c3b78cdd4919
This commit is contained in:
Pau Espin 2020-05-27 12:08:19 +02:00
parent 26890f3c31
commit 2e495749d5
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class RemoteHost(log.Origin):
echo "process ${term_child_pid} finished" >>$LOGFILE
}
prep_sighandler
$@ &
$@ <&0 &
wait_sighandler
""" % (wait_time_sec, wait_time_sec)
f.write(r)