SIGN IN SIGN UP

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>
A
Alexey Izbyshev committed
d3b4e068077dd26927ae7485bd0303e09d962c02
Parent: 3bf0d02
Committed by GitHub <noreply@github.com> on 11/1/2020, 5:33:08 AM