[fork] simplify Fork::SetResetChildPollingEngineFunc to fix nested forking (#33495 )
Noticed this in a nested forking test in
https://github.com/grpc/grpc/pull/33430 (by nested fork - forked child
process forks again).
Before this change, the EventEngine and non-EventEngine pollers were
competing with each other in their calls to
`Fork::SetResetChildPollingEngineFunc`. In the first child's after-fork
handler, the EE engine would [clear
out](123da4a866/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc (L260)
)
the post-fork handlers of the non-EE poller, leaving the grandchild
without the right post-fork cleanup method.
pull/33508/head
parent
cd4ff81b3f
commit
e9c44836bc
6 changed files with 32 additions and 37 deletions
Loading…
Reference in new issue