It seems like I was too excited and merged my PR #11579 too quickly. @izbyshev noticed that my change modified the subprocess behavior:
#11579
Honestly, I don't know if it's ok or not, but I case of doubt, I prefer to simpler revert to have more time to think about the issue.