mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
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:
parent
840bb5f90d
commit
fb58e46672
@ -1 +1 @@
|
|||||||
6a9326a07968a5e7f637ec0720e7b4616e66149e
|
a2d881f54b350c44f5a252bfb4feae666a02c5c5
|
||||||
|
@ -45,6 +45,15 @@
|
|||||||
return fcntl(fd, F_DUPFD_CLOEXEC, 3);
|
return fcntl(fd, F_DUPFD_CLOEXEC, 3);
|
||||||
#else
|
#else
|
||||||
const int newfd = fcntl(fd, F_DUPFD, 3);
|
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 @@
|
@@ -214,7 +214,7 @@
|
||||||
return open(pathname, flags | O_CLOEXEC | FDEVENT_O_FLAGS, mode);
|
return open(pathname, flags | O_CLOEXEC | FDEVENT_O_FLAGS, mode);
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user