Skip to content

Commit

Permalink
Reversed the order of SBM_(NON_)BLOCKING.
Browse files Browse the repository at this point in the history
  • Loading branch information
elfpipe committed Jun 15, 2024
1 parent 04c81af commit 628fbbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/stdio/fdhookentry.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,9 @@ int64_t __fd_hook_entry(struct _clib4 *__clib4, struct fd *fd, struct file_actio

if(FLAG_IS_SET(fd->fd_Flags, FDF_PIPE)) {
if (fam->fam_Arg != 0)
mode = SBM_NON_BLOCKING; /* buffered mode */
mode = SBM_BLOCKING; /* buffered mode */
else
mode = SBM_BLOCKING; /* single character mode */
mode = SBM_NON_BLOCKING; /* single character mode */

int32 r = SetBlockingMode(file, mode);

Expand Down

0 comments on commit 628fbbc

Please sign in to comment.