Default log file locations
serg.brester at sebres.de
Thu Jun 27 18:46:24 UTC 2019
>From _The Linux Programming Interface: A Linux and UNIX System
Programming Handbook_ :
Nonblocking mode can be used with devices (e.g., terminals and
pseudoterminals), pipes, FIFOs, and sockets. (Because file descriptors
for pipes and sockets are not obtained using open(), we must enable this
flag using the fcntl() F_SETFL operation described in Section 5.3.)
So basically if a "sharing" of standard handles is properly implemented
between master/workers and a line buffering is good enough for the
logging, you can "write to terminal in non-blocking manner."
Additionally note the stdout can be mapped to systemd journals (which
are files and channel will be to pipe), if nginx would running as
systemd service unit.
27.06.2019 19:35, Valentin V. Bartenev wrote:
> Afaik, there's no way in Linux systems to write to terminal in
> non-blocking manner. As the result, writing log can block the
> whole nginx worker process and cause DoS.
> IMHO, it's not a good idea to make your web-application depend
> on logging capabilities.
> wbr, Valentin V. Bartenev
> nginx-devel mailing list
> nginx-devel at nginx.orghttp://mailman.nginx.org/mailman/listinfo/nginx-devel 
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx-devel