[issue42736] Add support for making Linux prctl(...) calls to subprocess

Benjamin Peterson report at bugs.python.org
Fri Dec 25 13:32:07 EST 2020


Benjamin Peterson <benjamin at python.org> added the comment:

I wonder if a dedicated datatype should be created for all os-specific parameters like https://golang.org/pkg/syscall/#SysProcAttr. Popen already has way too many parameters. And prctl is a very general interface; probably 98% of prctls would never need to be called pre-exec.

(Separately, os.prctl should be created to expose prctl in all its multiplexed glory?)

(Also, but PDEATHSIG has an infamous footgun where the the signal is sent on exit of the forking thread, which is not necessarily the exit of the invoking process.)

----------
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list