Fix exec mode occlum server crashes issue (if the client unexpected exit)

This commit is contained in:
Zongmin 2020-09-08 21:19:45 +08:00 committed by Tate, Hongliang Tian
parent 75d3e6abb0
commit edd0980dc3

@ -214,9 +214,7 @@ impl OcclumExec for OcclumExecImpl {
"process:{} finished, send signal to {}",
process_id, client_process_id
);
//TODO: fix me if the client has been killed
signal::kill(Pid::from_raw(client_process_id as i32), Signal::SIGUSR1).unwrap();
signal::kill(Pid::from_raw(client_process_id as i32), Signal::SIGUSR1).unwrap_or_default();
});
resp.finish(ExecCommResponse {