From 105af4186eef42f48c6634f402fd9c8e59a050b9 Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Mon, 2 Sep 2013 10:24:36 +1000 Subject: [PATCH] fix bug closing file descriptors --- turbo_hipster/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbo_hipster/lib/utils.py b/turbo_hipster/lib/utils.py index 67c0e9b..e68675b 100644 --- a/turbo_hipster/lib/utils.py +++ b/turbo_hipster/lib/utils.py @@ -174,7 +174,7 @@ def execute_to_log(cmd, logfile, timeout=-1, # Clean up for fd, descriptor in descriptors.items(): poll_obj.unregister(fd) - fd.close() + os.close(fd) p.kill() logger.info('[script exit code = %d]' % p.returncode)