Open tresni opened 4 years ago
😞 Thanks for figuring that out! I have the idea that I should remove multiprocessing and python subprocesses altogether.
Just to ping you back I have finally merged all outstanding changes to master. I am planning to remove this multiprocessing machinery altogether in an upcoming version.
The behavior introduced in 2eb93fae218c4888184e8286899ecc9c50c09a78 cause openconnect-sso to crash on OSX. There is a known condition within OSX where calling
fork
in certain situations is prohibited. Normally this can be overridden by settingexport OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
as described on StackOverflow and other places.However, this does not work for openconnect-sso and the Python process crashes:
Without
set OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes
:With
set OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes
:It appears that PyQT (or QT itself) is forking, so the introduction of the multiprocessing.Process is a double fork. Reverting to 85da34bd61d57649d9677024bc3f91bb685361c1 or prior works fine.