From c615c4bb00836af2a52267301740d30a97e4d977 Mon Sep 17 00:00:00 2001 From: starainrt Date: Fri, 12 Nov 2021 15:58:01 +0800 Subject: [PATCH] vendor update --- files_unix.go | 2 +- process_win.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files_unix.go b/files_unix.go index 5f57429..132abcd 100644 --- a/files_unix.go +++ b/files_unix.go @@ -78,7 +78,7 @@ func (f *FileLock) Unlock() error { } func (f *FileLock) LockWithTimeout(tm time.Duration, Exclusive bool) error { - return stario.StopUntilTimeout(tm, func(tmout chan struct{}) error { + return stario.WaitUntilTimeout(tm, func(tmout chan struct{}) error { err := f.Lock(Exclusive) select { case <-tmout: diff --git a/process_win.go b/process_win.go index eba78db..fadbd6c 100644 --- a/process_win.go +++ b/process_win.go @@ -59,7 +59,7 @@ func Daemon(path string, args ...string) (int, error) { return pid, nil } -func (starcli *StarCmd) SetRunUser(uid, gid uint32) { +func (starcli *StarCmd) SetRunUser(uid, gid uint32, groups []uint32) { } @@ -69,4 +69,4 @@ func (starcli *StarCmd) Release() error { } starcli.CMD.Process.Release() return nil -} \ No newline at end of file +}