sys: clean up process after test
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
This commit is contained in:
parent
5383d31f32
commit
35a8e6e589
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user