posix_spawn

Daniel Holth <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <CAG8k2+5-T_SNsG8Zcvj5bM4Pae6wXGYJy4M69Utejdru70QoHw@mail.gmail.com>
I found this lovely cffi implementation of posix_spawn
https://github.com/projectcalico/python-posix-spawn . Since
subprocess.Popen() is too slow on PyPy, this gives a welcome speedup, but
it would probably help on CPython as well. However the file redirection is
probably not correct.

in posix.py:

def exec_subprocess_spawnp(l, env):

    pid = posix_spawn.posix_spawnp(l[0], l, env)

    return os.waitpid(pid, 0)[1]

_______________________________________________
Scons-dev mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/scons-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.