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 24, 2024
1 parent 022f729 commit f1bf177
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/parallel/job_token/unix.rs
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 f1bf177

Please sign in to comment.