Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/shared/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ RC_UNUSED static char *env_findvar(const char *name, char **envp)
RC_UNUSED static int xopen_nonblock(const char *filename, int flags, mode_t mode)
{
int fd = open(filename, flags | O_NONBLOCK, mode);
if (fd >= 0 && fcntl(F_SETFL, fd, flags & ~O_NONBLOCK) < 0) {
if (fd >= 0 && fcntl(fd, F_SETFL, flags & ~O_NONBLOCK) < 0) {
int saved_errno = errno;
close(fd);
fd = -1;
Expand Down
Loading