mirror of https://github.com/python/cpython
pass the command to sh -c
This commit is contained in:
parent
e0bfd50d76
commit
971ee13835
|
@ -5,7 +5,7 @@ import string
|
|||
MAXFD = 100 # Max number of file descriptors (os.getdtablesize()???)
|
||||
|
||||
def popen2(cmd):
|
||||
cmd = string.split(cmd)
|
||||
cmd = ['/bin/sh', '-c', cmd]
|
||||
p2cread, p2cwrite = os.pipe()
|
||||
c2pread, c2pwrite = os.pipe()
|
||||
pid = os.fork()
|
||||
|
|
Loading…
Reference in New Issue