ngx_write_fd

Ruslan Ermilov ru at nginx.com
Thu Mar 29 13:57:40 UTC 2018


On Thu, Mar 29, 2018 at 08:51:08AM +0000, Antonio Nappa wrote:
> Hi,
> 
> I was wondering what happens with ngx_write_fd function and multiple
> workers, I have made some tests and it doesn't look like they are
> interfering with each other and writing in the middle of a line. However I
> am not sure, that's the reason of my question. The file was opened with the
> ngx_conf_open_file.

This is guaranteed by opening the files with O_APPEND; see
ngx_init_cycle() and NGX_FILE_APPEND.


More information about the nginx-devel mailing list