Message311699
_Py_set_inheritable() raises a Python-level exception on error and thus is not async-signal-safe, but child_exec() must use only async-signal-safe functions because it's executed between fork() and exec().
Since a non-raising version is already implemented in Python/fileutils.c for internal use (set_inheritable), I suggest to simply expose it via another public function (similar to _Py_open_noraise(), etc.). |
|
Date |
User |
Action |
Args |
2018-02-06 01:34:03 | izbyshev | set | recipients:
+ izbyshev, vstinner |
2018-02-06 01:34:03 | izbyshev | set | messageid: <1517880843.05.0.467229070634.issue32777@psf.upfronthosting.co.za> |
2018-02-06 01:34:02 | izbyshev | link | issue32777 messages |
2018-02-06 01:34:01 | izbyshev | create | |
|