1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 10:25:06 +03:00

Reword and reindent comment

Follow-up for 0e557eef37.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-03-22 21:35:40 +01:00
parent de0b89913c
commit d229704743

View File

@ -252,18 +252,14 @@ int log_open(void) {
/* Do not call from library code. */ /* Do not call from library code. */
/* This function is often called in preparation for being able /* This function is often called in preparation for logging. Let's make sure we don't clobber errno,
* to log. Let's make sure we don't clobber errno, so that a call * so that a call to a logging function immediately following a log_open() call can still easily
* to a logging function immediately following a log_open() call * reference an error that happened immediately before the log_open() call. */
* can still easily reference an error that happened immediately
* before the log_open() call. */
PROTECT_ERRNO; PROTECT_ERRNO;
/* If we don't use the console we close it here, to not get /* If we don't use the console, we close it here to not get killed by SAK. If we don't use syslog, we
* killed by SAK. If we don't use syslog we close it here so * close it here too, so that we are not confused by somebody deleting the socket in the fs, and to
* that we are not confused by somebody deleting the socket in * make sure we don't use it if prohibit_ipc is set. If we don't use /dev/kmsg we still keep it open,
* the fs, and to make sure we don't use it if prohibit_ipc is
* set. If we don't use /dev/kmsg we still keep it open,
* because there is no reason to close it. */ * because there is no reason to close it. */
if (log_target == LOG_TARGET_NULL) { if (log_target == LOG_TARGET_NULL) {