STINNER Victor <vstin...@redhat.com> added the comment:

Maybe we need to expose an object in the os module to list which parameters are 
supported. setsid is not argument, but scheduler is another argument. There is 
also a discussion to add another argument to os.posix_spawn() to specify the 
working directly: it's not possible on all platforms neither.

Currently, there are os.supports_* constants like os.supports_dir_fd (set of 
function names). But I would prefer to have an object just for posix_spawn. 
Maybe:

os.supported_posix_spawn_args = ('file_actions', setpgroup', 'resetids', 
'setsid', 'setsigmark', 'setsigdef', 'scheduler')

The value would depend depending on the platform.

----------
nosy: +inada.naoki, pablogsal, serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36619>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to