Skip to content

Commit 8b5f1f0

Browse files
komhSilvanScherrer
authored andcommitted
fixes issue #53 os.rmdir() fails because of 'Resource busy'
1 parent 322603c commit 8b5f1f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ def _execute_child(self, args, executable, preexec_fn, close_fds,
18791879

18801880
if close_fds:
18811881
mode |= os.P_2_NOINHERIT
1882-
if threadsafe:
1882+
if threadsafe or cwd is not None:
18831883
mode |= os.P_2_THREADSAFE
18841884
stdfds = [ p2cread, c2pwrite, errwrite ]
18851885

0 commit comments

Comments
 (0)