diff --git a/fbscreenshot/src/main.rs b/fbscreenshot/src/main.rs index be33e46..3c7e104 100644 --- a/fbscreenshot/src/main.rs +++ b/fbscreenshot/src/main.rs @@ -85,18 +85,18 @@ fn fbscreenshot(output: &str, rotation: Rotation) -> Result<(), Box> 11) & 0x1F) as u8; @@ -131,7 +131,7 @@ fn main() -> Result<(), Box> { match fbscreenshot(&args.output, args.rotation) { Ok(()) => { println!("fbscreenshot: Saved screenshot to '{}'", &args.output); - Ok(()) + unsafe { nix::libc::_exit(0); } } Err(e) => { eprintln!("fbscreenshot: Failed saving screenshot to '{}': {e}", &args.output);