Merge pull request #1435 from Random-Liu/with-process-kill-all
WithProcessKill should kill all processes.
This commit is contained in:
commit
cf09e32618
@ -41,7 +41,7 @@ func WithProcessKill(ctx context.Context, p Process) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := p.Kill(ctx, syscall.SIGKILL); err != nil {
|
if err := p.Kill(ctx, syscall.SIGKILL, WithKillAll); err != nil {
|
||||||
if errdefs.IsFailedPrecondition(err) || errdefs.IsNotFound(err) {
|
if errdefs.IsFailedPrecondition(err) || errdefs.IsNotFound(err) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user