Almost forgot windows...

This commit is contained in:
Félix Saparelli 2022-01-16 20:17:32 +13:00
parent 1d64cac11f
commit 044a8244f9
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
1 changed files with 3 additions and 1 deletions

View File

@ -146,7 +146,9 @@ async fn imp_worker(
macro_rules! listen {
($sig:ident) => {{
trace!(kind=%stringify!($sig), "listening for windows process notification");
$sig()?
$sig().map_err(|err| CriticalError::IoError {
about: concat!("setting ", stringify!($sig), " signal listener"), err
})?
}}
}