commit | d3b4e068077dd26927ae7485bd0303e09d962c02 | [log] [tgz] |
---|---|---|
author | Alexey Izbyshev <izbyshev@ispras.ru> | Sun Nov 01 08:33:08 2020 +0300 |
committer | GitHub <noreply@github.com> | Sat Oct 31 22:33:08 2020 -0700 |
tree | 5ab2b61abda89577aa74d5713957976c3f551c6a | |
parent | 3bf0d02f2817c48b6ee61a95b52a6d76ad543be9 [diff] |
bpo-42146: Unify cleanup in subprocess_fork_exec() (GH-22970) * bpo-42146: Unify cleanup in subprocess_fork_exec() Also ignore errors from _enable_gc(): * They are always suppressed by the current code due to a bug. * _enable_gc() is only used if `preexec_fn != None`, which is unsafe. * We don't have a good way to handle errors in case we successfully created a child process. Co-authored-by: Gregory P. Smith <greg@krypto.org>