mirror of
https://github.com/rclone/rclone.git
synced 2025-12-19 01:33:25 +00:00
vendor: add qingstor-sdk-go for QingStor
This commit is contained in:
16
vendor/github.com/pengsrc/go-shared/pid/pidfile_unix.go
generated
vendored
Normal file
16
vendor/github.com/pengsrc/go-shared/pid/pidfile_unix.go
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// +build !windows,!darwin
|
||||
|
||||
package pid
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
func processExists(pid int) bool {
|
||||
if _, err := os.Stat(filepath.Join("/proc", strconv.Itoa(pid))); err == nil {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user