From e732dca7629edb503df0c65df5f37a99600d567d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Mar 2025 01:33:37 +0900 Subject: wl: fix sync pipe keepalive Signed-off-by: Ophestra --- wl/conn.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wl/conn.go') diff --git a/wl/conn.go b/wl/conn.go index 1a7cba65..9baa5abe 100644 --- a/wl/conn.go +++ b/wl/conn.go @@ -94,7 +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()) + runtime.KeepAlive(syncPipe[1]) }); err != nil { setupDone <- err } @@ -107,7 +107,7 @@ func bindRawConn(done chan struct{}, rc syscall.RawConn, p, appID, instanceID st return syncPipe[1], <-setupDone } -func bind(fd uintptr, p, appID, instanceID string, syncFD uintptr) error { +func bind(fd uintptr, p, appID, instanceID string, syncFd uintptr) error { // ensure p is available if f, err := os.Create(p); err != nil { return err @@ -117,5 +117,5 @@ func bind(fd uintptr, p, appID, instanceID string, syncFD uintptr) error { return err } - return bindWaylandFd(p, fd, appID, instanceID, syncFD) + return bindWaylandFd(p, fd, appID, instanceID, syncFd) } -- cgit v1.3.1