[all-commits] [llvm/llvm-project] a01d27: [OpenMP][libomp] Fix /dev/shm pollution after fork...

Andrey Churbanov via All-commits all-commits at lists.llvm.org
Tue Jul 19 11:02:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a01d274fbd44b49bf6c5af9cce49f706b31fab76
      https://github.com/llvm/llvm-project/commit/a01d274fbd44b49bf6c5af9cce49f706b31fab76
  Author: AndreyChurbanov <andrey.churbanov at intel.com>
  Date:   2022-07-19 (Tue, 19 Jul 2022)

  Changed paths:
    M openmp/runtime/src/kmp.h
    M openmp/runtime/src/kmp_global.cpp
    M openmp/runtime/src/kmp_runtime.cpp
    M openmp/runtime/src/z_Linux_util.cpp

  Log Message:
  -----------
  [OpenMP][libomp] Fix /dev/shm pollution after forked child process terminates

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.

Differential Revision: https://reviews.llvm.org/D125996




More information about the All-commits mailing list