From eda4d612c2e64321766e1074a698caeae843102a Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 23 Feb 2025 03:24:37 +0900 Subject: fortify: keep external files alive This should eliminate sporadic failures, like the known double close in "seccomp". Signed-off-by: Ophestra --- wl/conn.go | 1 + 1 file changed, 1 insertion(+) (limited to 'wl/conn.go') diff --git a/wl/conn.go b/wl/conn.go index 82c0587b..1a7cba65 100644 --- a/wl/conn.go +++ b/wl/conn.go @@ -94,6 +94,7 @@ func bindRawConn(done chan struct{}, rc syscall.RawConn, p, appID, instanceID st // keep socket alive until done is requested <-done + runtime.KeepAlive(syncPipe[1].Fd()) }); err != nil { setupDone <- err } -- cgit v1.3.1