@ -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:
@ -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