diff --git a/hyperactor_mesh/src/alloc/process.rs b/hyperactor_mesh/src/alloc/process.rs index 9c4255ee6..33f91f71f 100644 --- a/hyperactor_mesh/src/alloc/process.rs +++ b/hyperactor_mesh/src/alloc/process.rs @@ -180,7 +180,7 @@ impl Child { stderr_tee, ); - let process_pid = Arc::new(std::sync::Mutex::new(Some(process.id().unwrap() as i32))); + let process_pid = Arc::new(std::sync::Mutex::new(process.id().map(|id| id as i32))); let child = Self { local_rank,