equal
deleted
inserted
replaced
61 processlock = threading.Lock() |
61 processlock = threading.Lock() |
62 |
62 |
63 # subprocess._cleanup can race with any Popen.wait or Popen.poll on py24 |
63 # subprocess._cleanup can race with any Popen.wait or Popen.poll on py24 |
64 # http://bugs.python.org/issue1731717 for details. We shouldn't be producing |
64 # http://bugs.python.org/issue1731717 for details. We shouldn't be producing |
65 # zombies but it's pretty harmless even if we do. |
65 # zombies but it's pretty harmless even if we do. |
66 if sys.version_info[1] < 5: |
66 if sys.version_info < (2, 5): |
67 subprocess._cleanup = lambda: None |
67 subprocess._cleanup = lambda: None |
68 |
68 |
69 closefds = os.name == 'posix' |
69 closefds = os.name == 'posix' |
70 def Popen4(cmd, wd, timeout, env=None): |
70 def Popen4(cmd, wd, timeout, env=None): |
71 processlock.acquire() |
71 processlock.acquire() |