pull the code itself

master
rascul 2 years ago
parent 486e5e3aa8
commit d689505311

@ -121,11 +121,19 @@ fn run_loop(procs: Vec<Proc>, holds: Option<i8>, poll: Poll, signals: Signals) -
}
// process exited
Ok(ProcessEvent::Exit(status)) => {
if let Some(code) = status.code() {
info!(
"[{}] exited with status {}",
"[{}] exited with code {}",
&proc.app.name.yellow(),
status
code
);
} else {
info!(
"[{}] exited with unknown code",
&proc.app.name.yellow()
);
}
let hold = proc.app.hold.unwrap_or(false);
if proc.app.check_restart(status) {
if let Ok(p) = restart_app(proc) {

Loading…
Cancel
Save