From a6fc7604b220267732084940cb172b4978f87aa1 Mon Sep 17 00:00:00 2001 From: Matt Shin Date: Fri, 5 Jan 2018 10:06:47 +0000 Subject: [PATCH] Redirect Popen stdin from /dev/null in new module --- lib/cylc/task_remote_mgr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cylc/task_remote_mgr.py b/lib/cylc/task_remote_mgr.py index 503aba9d0b8..56af0665c88 100644 --- a/lib/cylc/task_remote_mgr.py +++ b/lib/cylc/task_remote_mgr.py @@ -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: