|KUTIL_OPENLOG(3)||Library Functions Manual||KUTIL_OPENLOG(3)|
configure log message sink
If file is not
first redirects stderr to file.
Then, regardless of whether file is
NULL, the output buffering of the stream is set to
CGI scripts invoking long-running child processes via fork(2) should use this function with a valid file as the web server might wait for all file descriptors to close before closing the request connection.
kutil_openlog() function returns zero
on failure (system error) and non-zero on success. If
kutil_openlog() fails to re-open
stderr, the output stream may no longer be operable:
the caller should exit.
kutil_openlog() function was written
by Kristaps Dzonsons
In most situations, file is configured in
the default log directory, which is not writable to the CGI process. Thus,
file must be pre-created and be writable to the CGI
kutil_openlog() will fail to
create the file and exit with failure.
|September 23, 2021||OpenBSD 6.7|