mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-28 05:31:58 -08:00
Windows support for blobstore
This commit is contained in:
parent
34b9fbaec4
commit
4e20111ff6
4 changed files with 46 additions and 4 deletions
|
|
@ -186,10 +186,9 @@ func acquireLockfile(path string) os.Error {
|
|||
return err
|
||||
}
|
||||
|
||||
pid, err := strconv.Atoi(string(content))
|
||||
pid, err := strconv.Atoui64(string(content))
|
||||
if err == nil {
|
||||
errno := syscall.Kill(pid, 0)
|
||||
if errno == 0 {
|
||||
if pidRunning(pid) {
|
||||
return ErrLocked
|
||||
}
|
||||
}
|
||||
|
|
@ -220,7 +219,7 @@ func acquireLockfile(path string) os.Error {
|
|||
} else if err != nil {
|
||||
return err
|
||||
} else {
|
||||
_, err = lockfile.WriteString(strconv.Itoa(syscall.Getpid()))
|
||||
_, err = lockfile.WriteString(strconv.Uitoa64(getPid()))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue