wl: fix sync pipe keepalive

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-25 01:33:37 +09:00
parent a9adcd914b
commit e732dca762
2 changed files with 5 additions and 5 deletions

View File

@@ -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)
}