1
0
Fork 0
forked from External/grumble

Windows support for blobstore

This commit is contained in:
Mikkel Krautz 2011-05-16 23:32:41 +02:00
parent 34b9fbaec4
commit 4e20111ff6
4 changed files with 46 additions and 4 deletions

17
pkg/blobstore/pid_unix.go Normal file
View file

@ -0,0 +1,17 @@
// Copyright (c) 2011 The Grumble Authors
// The use of this source code is goverened by a BSD-style
// license that can be found in the LICENSE-file.
package blobstore
import (
"syscall"
)
func getPid() uint64 {
return uint64(syscall.Getpid())
}
func pidRunning(pid uint64) bool {
return syscall.Kill(int(pid), 0) == 0
}