summaryrefslogtreecommitdiff
path: root/src/fdevent.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-04-15 21:50:09 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2023-04-15 21:50:09 -0400
commitfdb7ffed88b9dfe09a51e7fb58e5ddfe938c1ec9 (patch)
treed4525ef8b708cb8bb347328714590115e4cd4d9b /src/fdevent.c
parent970f4bb82d313892004b3ec908e6178d1de62c2a (diff)
downloadlighttpd-git-fdb7ffed88b9dfe09a51e7fb58e5ddfe938c1ec9.tar.gz
[core] quiet coverity warning
Diffstat (limited to 'src/fdevent.c')
-rw-r--r--src/fdevent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fdevent.c b/src/fdevent.c
index c4037645..ec1e74bb 100644
--- a/src/fdevent.c
+++ b/src/fdevent.c
@@ -655,7 +655,8 @@ fdevent_load_file (const char * const fn, off_t *lim, log_error_st *errh, void *
#ifndef _WIN32
#ifdef O_NONBLOCK
/*(else read() might err EAGAIN Resource temporarily unavailable)*/
- fcntl(fd, F_SETFL, (O_RDONLY | FDEVENT_O_FLAGS) & ~O_NONBLOCK);
+ if (fcntl(fd, F_SETFL, (O_RDONLY|FDEVENT_O_FLAGS) & ~O_NONBLOCK)) {}
+ /*(ignore fcntl() error; not expected and detected later if err)*/
#endif
#endif
ssize_t rd;