This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomp] Fix /dev/shm pollution after forked child process terminates
ClosedPublic

Authored by jlpeyton on May 19 2022, 11:31 AM.

Details

Summary

Made library registration conditional and skip it in the __kmp_atfork_child
handler, postponed it till middle initialization in the child.
This fixes the problem of applications those use e.g. popen/pclose
which terminate the forked child process.

Diff Detail

Event Timeline

jlpeyton created this revision.May 19 2022, 11:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 11:31 AM
jlpeyton requested review of this revision.May 19 2022, 11:31 AM
This revision is now accepted and ready to land.Jul 15 2022, 9:00 AM