From 6b85b92977afe7d093e666baba70c6a49368e356 Mon Sep 17 00:00:00 2001 From: israrkhan Date: Wed, 22 Mar 2017 15:45:23 -0700 Subject: [PATCH] Fixed issue where bash could not run tmpfile , since it was already in use by vim --- lib/runners.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/runners.py b/lib/runners.py index 687e851..7fc044b 100644 --- a/lib/runners.py +++ b/lib/runners.py @@ -20,6 +20,7 @@ def _build_script(cmd_def): os.write(fh, '\n') os.write(fh, cmd_def['cmd']) os.write(fh, '\n') + os.close(fh) # ensure that the filepath is executable by the runner process, the default # tempfile is 0600