[issue20104] expose posix_spawn(p)

Pablo Galindo Salgado report at bugs.python.org
Mon May 14 11:58:41 EDT 2018


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

Regarding the rationale for when posix_spawn can be useful (from the RATIONALE section of the man page):

The posix_spawn() function and its close relation posix_spawnp() have been introduced to overcome the following perceived difficulties with fork(): the fork() function is difficult or impossible to implement without swapping or dynamic address translation.

Swapping is generally too slow for a realtime environment.

Dynamic address translation is not available everywhere that POSIX might be useful.

Processes are too useful to simply option out of POSIX whenever it must run without address translation or other MMU services.

Thus, POSIX needs process creation and file execution primitives that can be efficiently implemented without address translation or other MMU services.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue20104>
_______________________________________


More information about the Python-bugs-list mailing list