From 41d8548be87afb1c30ee589b9f50b80b228d30a7 Mon Sep 17 00:00:00 2001 From: lifubang Date: Thu, 4 Apr 2024 00:31:09 +0800 Subject: [PATCH] Revert "[hotfix] nsenter: refuse to build with Go 1.22 on glibc" This reverts commit e377e16846b8997a4ef52d7044cf0efcecac5e2e. Signed-off-by: lifubang --- libcontainer/nsenter/nsenter_go122.go | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 libcontainer/nsenter/nsenter_go122.go diff --git a/libcontainer/nsenter/nsenter_go122.go b/libcontainer/nsenter/nsenter_go122.go deleted file mode 100644 index 2b9ece0ad29..00000000000 --- a/libcontainer/nsenter/nsenter_go122.go +++ /dev/null @@ -1,15 +0,0 @@ -//go:build go1.22 - -package nsenter - -/* -// We know for sure that glibc has issues with pthread_self() when called from -// Go after nsenter has run. This is likely a more general problem with how we -// ignore the rules in signal-safety(7), and so it's possible musl will also -// have issues, but as this is just a hotfix let's only block glibc builds. -#include -#ifdef __GLIBC__ -# error "runc does not currently work properly with Go >=1.22. See ." -#endif -*/ -import "C"