pkill 添加-9 强制kill
This commit is contained in:
parent
ef7b59ce3d
commit
072468005c
|
@ -117,10 +117,4 @@ func Execute() {
|
||||||
ps.Wait(time.Minute * 5)
|
ps.Wait(time.Minute * 5)
|
||||||
}
|
}
|
||||||
|
|
||||||
func merge(nums1 []int, m int, nums2 []int, n int) {
|
|
||||||
for i := 0 ; i < n ; i++ {
|
|
||||||
nums1[m+i] = n[i]
|
|
||||||
}
|
|
||||||
sort
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
2
utils.go
2
utils.go
|
@ -109,7 +109,7 @@ func (adriver *AutoCloseDriver) Close() {
|
||||||
}
|
}
|
||||||
// log.Println(string(data))
|
// log.Println(string(data))
|
||||||
|
|
||||||
killshell := fmt.Sprintf("pkill -P %s", data)
|
killshell := fmt.Sprintf("pkill -9 -P %s", data)
|
||||||
// log.Println(killshell)
|
// log.Println(killshell)
|
||||||
// pkill -f \"port=%d\"
|
// pkill -f \"port=%d\"
|
||||||
// log.Printf(fmt.Sprintf("kill -9 $(lsof -t -i:%d)", port))
|
// log.Printf(fmt.Sprintf("kill -9 $(lsof -t -i:%d)", port))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user