Vmm_unix: use Sys.sigterm (and rely on caml_convert_signal_number to be cross-platform)

This commit is contained in:
Hannes Mehnert 2019-01-20 20:37:30 +01:00
parent dfd22be62b
commit fc63a89429

View file

@ -185,7 +185,7 @@ let exec name config taps block =
close_no_err stdout;
R.error_msgf "cmd %a exits: %a" Bos.Cmd.pp cmd pp_unix_error e
let destroy vm = Unix.kill vm.Unikernel.pid 15 (* 15 is SIGTERM *)
let destroy vm = Unix.kill vm.Unikernel.pid Sys.sigterm
let bytes_of_mb size =
let res = size lsl 20 in