github.com/opencontainers/runc@v1.2.0-rc.1.0.20240520010911-492dc558cdd6/libcontainer/nsenter/nsenter_go122.go (about)

     1  //go:build go1.22
     2  
     3  package nsenter
     4  
     5  /*
     6  // We know for sure that glibc has issues with pthread_self() when called from
     7  // Go after nsenter has run. This is likely a more general problem with how we
     8  // ignore the rules in signal-safety(7), and so it's possible musl will also
     9  // have issues, but as this is just a hotfix let's only block glibc builds.
    10  #include <features.h>
    11  #ifdef __GLIBC__
    12  #  error "runc does not currently work properly with Go >=1.22. See <https://github.com/opencontainers/runc/issues/4233>."
    13  #endif
    14  */
    15  import "C"