3
.\" Copyright (c) 2016--2017 Kristaps Dzonsons <kristaps@bsd.lv>
5
.\" Permission to use, copy, modify, and distribute this software for any
6
.\" purpose with or without fee is hereby granted, provided that the above
7
.\" copyright notice and this permission notice appear in all copies.
9
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
.Nd configure log message sink
37
function configures output for the
40
By default, these functions log to
42
and inherit the initial output buffering behaviour
54
Then, regardless of whether
58
the output buffering of the stream is set to line buffered.
60
CGI scripts invoking long-running child processes via
62
should use this function with a valid
64
as the web server might wait for all file descriptors to close before
65
closing the request connection.
69
function returns zero on failure (system error) and non-zero on success.
74
the output stream may no longer be operable: the caller should exit.
78
function was written by
79
.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv .
83
is configured in the default log directory, which is not writable to the
87
must be pre-created and be writable to the CGI process.
90
will fail to create the file and exit with failure.