sys: clean up process after test
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
This commit is contained in:
		| @@ -72,6 +72,8 @@ func adjustOom(adjustment int) (int, error) { | |||||||
| 		return 0, err | 		return 0, err | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	defer cmd.Process.Kill() | ||||||
|  |  | ||||||
| 	pid, err := waitForPid(cmd.Process) | 	pid, err := waitForPid(cmd.Process) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return 0, err | 		return 0, err | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Shengjing Zhu
					Shengjing Zhu