Welcome! Log In Create A New Profile

Advanced

Re: ngx_write_fd

March 29, 2018 10:00AM
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.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

ngx_write_fd

Antonio Nappa 679 March 29, 2018 04:52AM

Re: ngx_write_fd

Vasily Soshnikov 417 March 29, 2018 05:12AM

Re: ngx_write_fd

ru@nginx.com 608 March 29, 2018 10:00AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready