Fix exec mode occlum server crashes issue (if the client unexpected exit)
This commit is contained in:
parent
75d3e6abb0
commit
edd0980dc3
@ -214,9 +214,7 @@ impl OcclumExec for OcclumExecImpl {
|
|||||||
"process:{} finished, send signal to {}",
|
"process:{} finished, send signal to {}",
|
||||||
process_id, client_process_id
|
process_id, client_process_id
|
||||||
);
|
);
|
||||||
|
signal::kill(Pid::from_raw(client_process_id as i32), Signal::SIGUSR1).unwrap_or_default();
|
||||||
//TODO: fix me if the client has been killed
|
|
||||||
signal::kill(Pid::from_raw(client_process_id as i32), Signal::SIGUSR1).unwrap();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
resp.finish(ExecCommResponse {
|
resp.finish(ExecCommResponse {
|
||||||
|
Loading…
Reference in New Issue
Block a user