Vmm_unix: don't reset image of a config

This commit is contained in:
Hannes Mehnert 2019-01-20 20:35:55 +01:00
parent accb21b8b7
commit dfd22be62b

View file

@ -179,8 +179,6 @@ let exec name config taps block =
(* we gave a copy (well, two copies) of that file descriptor to the solo5 (* we gave a copy (well, two copies) of that file descriptor to the solo5
process and don't really need it here anymore... *) process and don't really need it here anymore... *)
close stdout ; close stdout ;
(* this should get rid of the vmimage from vmmd's memory! *)
let config = Unikernel.{ config with image = (fst config.Unikernel.image, Cstruct.create 0) } in
Ok Unikernel.{ config ; cmd ; pid ; taps } Ok Unikernel.{ config ; cmd ; pid ; taps }
with with
Unix.Unix_error (e, _, _) -> Unix.Unix_error (e, _, _) ->