use SIGTERM, not SIGKILL - now solo5 ukvm has the ability to execute atexit functions

This commit is contained in:
Hannes Mehnert 2017-10-26 22:21:15 +02:00
parent bdedadf689
commit 1d3cf484c4

View file

@ -191,4 +191,4 @@ let exec dir vm fifo vmimage taps =
close_no_err stdout; close_no_err stdout;
R.error_msgf "cmd %a exits: %a" Bos.Cmd.pp cmd pp_unix_error e R.error_msgf "cmd %a exits: %a" Bos.Cmd.pp cmd pp_unix_error e
let destroy vm = Unix.kill vm.pid 9 let destroy vm = Unix.kill vm.pid 15 (* 15 is SIGTERM *)