Skip to content

Commit

Permalink
linux build update
Browse files Browse the repository at this point in the history
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
  • Loading branch information
blt committed Jul 9, 2024
1 parent 7b6cb98 commit 76830e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lading/src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ impl Server {
#[cfg(target_os = "linux")]
let target_wait = {
use async_pidfd::AsyncPidFd;
let pidfd = AsyncPidFd::from_pid(raw_pid).map_err(Error::PidConversion)?;
let pidfd =
AsyncPidFd::from_pid(pid.try_into().expect("cannot convert pid to 32 bit type"))
.map_err(Error::PidConversion)?;
async move {
let exit_info = pidfd.wait().await;
exit_info.map(|info| info.status()).ok()
Expand Down

0 comments on commit 76830e5

Please sign in to comment.