lighttpd: omit O_NONBLOCK

Uploading large files via HTTP PUT failed when the file system was
accessed via a file system session because lighttpd opened the
destination file with O_NONBLOCK and the write operation stalled
at some point.

genodelabs/genode#5093
This commit is contained in:
Johannes Schlatow 2023-12-20 17:11:17 +01:00 committed by Christian Helmuth
parent 840bb5f90d
commit fb58e46672
2 changed files with 10 additions and 1 deletions

View File

@ -1 +1 @@
6a9326a07968a5e7f637ec0720e7b4616e66149e
a2d881f54b350c44f5a252bfb4feae666a02c5c5

View File

@ -45,6 +45,15 @@
return fcntl(fd, F_DUPFD_CLOEXEC, 3);
#else
const int newfd = fcntl(fd, F_DUPFD, 3);
@@ -203,7 +203,7 @@
/* O_CLOEXEC handled further below, if defined) */
#ifdef O_NONBLOCK
#define FDEVENT_O_FLAGS \
- (O_BINARY | O_LARGEFILE | O_NOCTTY | O_NONBLOCK)
+ (O_BINARY | O_LARGEFILE | O_NOCTTY )
#else
#define FDEVENT_O_FLAGS \
(O_BINARY | O_LARGEFILE | O_NOCTTY )
@@ -214,7 +214,7 @@
return open(pathname, flags | O_CLOEXEC | FDEVENT_O_FLAGS, mode);
#else