mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
PID
This commit is contained in:
parent
cd877d9d5a
commit
f37afa24a3
@ -54,7 +54,7 @@ func init() {
|
||||
cmd.Start()
|
||||
} else {
|
||||
// 禁止重复启动
|
||||
fmt.Printf("%s\n", rs.Pid)
|
||||
fmt.Printf("[PID] %s\n", rs.Pid)
|
||||
os.Exit(0)
|
||||
}
|
||||
}
|
||||
@ -81,7 +81,7 @@ func init() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Printf("%d\n", cmd.Process.Pid)
|
||||
fmt.Printf("[PID] %d\n", cmd.Process.Pid)
|
||||
os.Exit(0)
|
||||
} else {
|
||||
npid := fmt.Sprintf("%d", os.Getpid())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user