pkill 添加-9 强制kill

This commit is contained in:
eson 2020-09-14 15:15:41 +08:00
parent ef7b59ce3d
commit 072468005c
2 changed files with 1 additions and 7 deletions

View File

@ -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
}
} }

View File

@ -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))