Skip to content

Commit bf70f4d

Browse files
committed
pkg/networks/usernet: Use SIGINT instead of SIGKILL
By this change, `limactl usernet` can stop gracefully. Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
1 parent 40e9649 commit bf70f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/networks/usernet/recoincile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func Stop(ctx context.Context, name string) error {
143143
return err
144144
}
145145

146-
if err := osutil.SysKill(pid, osutil.SigKill); err != nil {
146+
if err := osutil.SysKill(pid, osutil.SigInt); err != nil {
147147
logrus.Error(err)
148148
return fmt.Errorf("failed to kill process with pid %d: %w", pid, err)
149149
}

0 commit comments

Comments
 (0)