From 072468005c2a053dcd5dfe3697865f8460070444 Mon Sep 17 00:00:00 2001 From: eson Date: Mon, 14 Sep 2020 15:15:41 +0800 Subject: [PATCH] =?UTF-8?q?pkill=20=E6=B7=BB=E5=8A=A0-9=20=E5=BC=BA?= =?UTF-8?q?=E5=88=B6kill?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/twitch/twitch_task1/task_twitch.go | 6 ------ utils.go | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/tasks/twitch/twitch_task1/task_twitch.go b/tasks/twitch/twitch_task1/task_twitch.go index 57e8618..c0ab21a 100644 --- a/tasks/twitch/twitch_task1/task_twitch.go +++ b/tasks/twitch/twitch_task1/task_twitch.go @@ -117,10 +117,4 @@ func Execute() { 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 - } } diff --git a/utils.go b/utils.go index aa14bbe..edbd926 100644 --- a/utils.go +++ b/utils.go @@ -109,7 +109,7 @@ func (adriver *AutoCloseDriver) Close() { } // log.Println(string(data)) - killshell := fmt.Sprintf("pkill -P %s", data) + killshell := fmt.Sprintf("pkill -9 -P %s", data) // log.Println(killshell) // pkill -f \"port=%d\" // log.Printf(fmt.Sprintf("kill -9 $(lsof -t -i:%d)", port))