 
            That is motivated by probably an unsupported use case.
EOS Easy Anti Cheat bootstrapper creates the process calling Wine directly by Unix means, without calling Wine's NtCreateUserProcess. The process created this way looses, in particular, Win-side parent process id and inclusion to job. That breaks some aspects of Ubisoft API functioning when a game launched through Ubisoft launcher relaunches itself through EAC. If, however, the Unix parent process is a Wine process (like the case here with EAC bootstrapper) it is possible to detect that and inherit those parameters (apart from environment variables which are a separate story).
I realize that this is not quite supported use case. Yet maybe we can do that as it probably looks harmless. If there are entirely Unix side processes created they won't become seen on the Win side this way, for this patch to have effect both parent and child must be Wine processes. This specific use case involving EOS EAC doesn't depend on any Proton-specific components, it is supposed to work with upstream Wine too without requiring additional modules.