Skip to content

Commit

Permalink
Fix set_blocking (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
NobodyXu authored Feb 25, 2024
1 parent 022f729 commit 46eedd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parallel/stderr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn get_flags(fd: std::os::unix::io::RawFd) -> Result<i32, Error> {

#[cfg(unix)]
fn set_flags(fd: std::os::unix::io::RawFd, flags: std::os::raw::c_int) -> Result<(), Error> {
if unsafe { libc::fcntl(fd, libc::F_SETFL, flags | libc::O_NONBLOCK) } == -1 {
if unsafe { libc::fcntl(fd, libc::F_SETFL, flags) } == -1 {
Err(Error::new(
ErrorKind::IOError,
format!(
Expand Down

0 comments on commit 46eedd0

Please sign in to comment.