Skip to content

Commit

Permalink
fix: cfg attribute scope (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurdandrea authored Jun 6, 2024
1 parent f2e658a commit 04a41f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokio/process_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ impl TokioCommandWrapper for ProcessGroup {
}

#[cfg(not(tokio_unstable))]
let leader = self.leader;
unsafe {
let leader = self.leader;
command.pre_exec(move || {
setpgid(Pid::this(), leader)
.map_err(Error::from)
Expand Down

0 comments on commit 04a41f3

Please sign in to comment.