equal
deleted
inserted
replaced
74 processlock.acquire() |
74 processlock.acquire() |
75 p = subprocess.Popen(cmd, shell=True, bufsize=-1, cwd=wd, env=env, |
75 p = subprocess.Popen(cmd, shell=True, bufsize=-1, cwd=wd, env=env, |
76 close_fds=closefds, |
76 close_fds=closefds, |
77 stdin=subprocess.PIPE, stdout=subprocess.PIPE, |
77 stdin=subprocess.PIPE, stdout=subprocess.PIPE, |
78 stderr=subprocess.STDOUT) |
78 stderr=subprocess.STDOUT) |
79 p.wait = waitlocked(p.wait) |
79 if sys.version_info[1] < 5: |
80 p.poll = waitlocked(p.poll) |
80 p.wait = waitlocked(p.wait) |
|
81 p.poll = waitlocked(p.poll) |
81 processlock.release() |
82 processlock.release() |
82 |
83 |
83 p.fromchild = p.stdout |
84 p.fromchild = p.stdout |
84 p.tochild = p.stdin |
85 p.tochild = p.stdin |
85 p.childerr = p.stderr |
86 p.childerr = p.stderr |