]> git.kaiwu.me - nginx.git/commit
Adjusted file->sys_offset after the write() syscall.
authorValentin Bartenev <vbart@nginx.com>
Tue, 17 Nov 2015 16:01:41 +0000 (19:01 +0300)
committerValentin Bartenev <vbart@nginx.com>
Tue, 17 Nov 2015 16:01:41 +0000 (19:01 +0300)
commit9ef4b63328f534a647b367be1bce3b5a159e7c32
tree36e0e561795724da57a345ee3e0e597e8ac6ea91
parent3aef20d257b5afb385da7fa85dfeed89cf9314ea
Adjusted file->sys_offset after the write() syscall.

This fixes suboptimal behavior caused by surplus lseek() for sequential writes
on systems without pwrite().  A consecutive read after write might result in an
error on systems without pread() and pwrite().

Fortunately, at the moment there are no widely used systems without these
syscalls.
src/os/unix/ngx_files.c