Skip to content

Commit

Permalink
Disable optimization for jobserver pipe
Browse files Browse the repository at this point in the history
It could be the reason why the failure still happens in sfackler/rust-openssl#2184 (comment)
  • Loading branch information
NobodyXu committed Feb 27, 2024
1 parent f0153a4 commit e49e7c9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/parallel/job_token/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,6 @@ impl JobServerClient {
Some(libc::O_RDONLY) | Some(libc::O_RDWR),
Some(libc::O_WRONLY) | Some(libc::O_RDWR),
) => {
// Optimization: Try converting it to a fifo by using /dev/fd
if let Some(jobserver) =
Self::from_fifo(Path::new(&format!("/dev/fd/{}", read.as_raw_fd())))
{
return Some(jobserver);
}

let read = read.try_clone().ok()?;
let write = write.try_clone().ok()?;

Expand Down

0 comments on commit e49e7c9

Please sign in to comment.