vendor: add qingstor-sdk-go for QingStor
This commit is contained in:
parent
f682002b84
commit
466dd22b44
136 changed files with 15952 additions and 1 deletions
14
vendor/github.com/pengsrc/go-shared/pid/pidfile_darwin.go
generated
vendored
Normal file
14
vendor/github.com/pengsrc/go-shared/pid/pidfile_darwin.go
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
// +build darwin
|
||||
|
||||
package pid
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func processExists(pid int) bool {
|
||||
// OS X does not have a proc filesystem.
|
||||
// Use kill -0 pid to judge if the process exists.
|
||||
err := syscall.Kill(pid, 0)
|
||||
return err == nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue