Skip to content

Commit

Permalink
refactor: don't require nix::Pid on the public API
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Apr 16, 2024
1 parent fa44e91 commit fd5f5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tokio/process_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ impl ProcessGroup {
}

/// Create a process group wrapper attaching the command to an existing process group ID.
pub fn attach_to(leader: Pid) -> Self {
Self { leader }
pub fn attach_to(leader: u32) -> Self {
Self { leader: Pid::from_raw(leader as i32) }
}
}

Expand Down

0 comments on commit fd5f5e3

Please sign in to comment.