Skip to content

Commit

Permalink
Fix conditional compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiimk committed Jul 12, 2021
1 parent 425415d commit 30f948b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kamu-core/src/infra/explore/livy_server_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ impl LivyServerImpl {
std::thread::sleep(std::time::Duration::from_millis(100));
}

if !cfg!(windows) {
unsafe {
libc::kill(livy.id() as libc::pid_t, libc::SIGTERM);
cfg_if::cfg_if! {
if #[cfg(unix)] {
unsafe {
libc::kill(livy.id() as libc::pid_t, libc::SIGTERM);
}
}
}

Expand Down

0 comments on commit 30f948b

Please sign in to comment.