Kaydet (Commit) b35fc626 authored tarafından Xavier de Gaye's avatar Xavier de Gaye

Issue #16255: subrocess.Popen uses /system/bin/sh on Android as the shell,

instead of /bin/sh.
üst f191a9e8
...@@ -1204,7 +1204,10 @@ class Popen(object): ...@@ -1204,7 +1204,10 @@ class Popen(object):
args = list(args) args = list(args)
if shell: if shell:
args = ["/bin/sh", "-c"] + args # On Android the default shell is at '/system/bin/sh'.
unix_shell = ('/system/bin/sh' if
hasattr(sys, 'getandroidapilevel') else '/bin/sh')
args = [unix_shell, "-c"] + args
if executable: if executable:
args[0] = executable args[0] = executable
......
...@@ -177,6 +177,9 @@ Core and Builtins ...@@ -177,6 +177,9 @@ Core and Builtins
Library Library
------- -------
- Issue #16255: subrocess.Popen uses /system/bin/sh on Android as the shell,
instead of /bin/sh.
- Issue #28779: multiprocessing.set_forkserver_preload() would crash the - Issue #28779: multiprocessing.set_forkserver_preload() would crash the
forkserver process if a preloaded module instantiated some forkserver process if a preloaded module instantiated some
multiprocessing objects such as locks. multiprocessing objects such as locks.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment