commit
This commit is contained in:
parent
785b086677
commit
566ffb49f3
2 changed files with 5 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
# Deckster
|
# Deckster
|
||||||
## To do
|
## To do
|
||||||
- Exit with a non-zero status code when a handler process exits unexpectedly.
|
|
||||||
- Move loupedeck_serial and pa_volume_interface out of this repository.
|
- Move loupedeck_serial and pa_volume_interface out of this repository.
|
||||||
-
|
- Publish libraries to crates.io
|
||||||
|
- Move handlers to their own repositories
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
### Terminology
|
### Terminology
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::ffi::OsString;
|
use std::ffi::OsString;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::process::Stdio;
|
use std::process::{exit, Stdio};
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
@ -226,6 +226,8 @@ async fn start_handler(
|
||||||
None => log::error!("The '{handler_name}' handler was unexpectedly terminated by a signal."),
|
None => log::error!("The '{handler_name}' handler was unexpectedly terminated by a signal."),
|
||||||
Some(code) => log::error!("The '{handler_name}' handler exited unexpectedly with status code {code}"),
|
Some(code) => log::error!("The '{handler_name}' handler exited unexpectedly with status code {code}"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exit(1);
|
||||||
} else {
|
} else {
|
||||||
log::debug!("The '{handler_name}' handler exited: {exit_status:#?}");
|
log::debug!("The '{handler_name}' handler exited: {exit_status:#?}");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue