f-15: fix: error in thread

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-03-31 22:04:37 +02:00
commit 049cabc489
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

View file

@ -4,11 +4,15 @@ package netns
import (
"os"
"runtime"
"golang.org/x/sys/unix"
)
func create(name string) error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
base := "/var/run/netns"
path := base + "/" + name