Skip to content

Commit

Permalink
Redirect Popen stdin from /dev/null in new module
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrmshin committed Jan 9, 2018
1 parent 4e93e26 commit a6fc760
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cylc/task_remote_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ def remote_tidy(self):
cmd.append('--debug')
cmd.append(os.path.join(GLOBAL_CFG.get_derived_host_item(
self.suite, 'suite run directory', host, owner)))
procs[(host, owner)] = (cmd, Popen(cmd, stdout=PIPE, stderr=PIPE))
procs[(host, owner)] = (
cmd,
Popen(cmd, stdout=PIPE, stderr=PIPE, stdin=open(os.devnull)))
# Wait for commands to complete for a max of 10 seconds
timeout = time() + 10.0
while procs and time() < timeout:
Expand Down

0 comments on commit a6fc760

Please sign in to comment.