From 5d6123a046eeaa186fffa60a462364dabd5f96d3 Mon Sep 17 00:00:00 2001 From: Alexander Pevzner Date: Mon, 12 Dec 2022 19:14:54 +0300 Subject: [PATCH] Documentation of log file redirection to updated Since multiple processes can write logs simultaneously, and there is no explicit synchronization between them, logs redirected to stdout may interleave. When logging to the disk file, synchronization is obtained by using a combination of O_APPEND and O_SYNC flags when log file is being opened, which is not possible when redirection is in use. So documentation is updated to cleanly notify that this is debug-only feature, not for regular use --- docs/man/sesman.ini.5.in | 2 +- docs/man/xrdp.ini.5.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/man/sesman.ini.5.in b/docs/man/sesman.ini.5.in index 2bb22708..78d6cce1 100644 --- a/docs/man/sesman.ini.5.in +++ b/docs/man/sesman.ini.5.in @@ -98,7 +98,7 @@ sections. \fBLogFile\fR=\fIfilename\fR Log file path. It can be either absolute or relative. If not specified, defaults to \fI./sesman.log\fR. If set to \fB\fR, log will go to -stdout, which is useful for debugging\fR +stdout. Use for debugging only\fR It is ignored in the [ChansrvLogging] section since the channel server creates one log file per display and instead uses the diff --git a/docs/man/xrdp.ini.5.in b/docs/man/xrdp.ini.5.in index 46240b62..f1713edb 100644 --- a/docs/man/xrdp.ini.5.in +++ b/docs/man/xrdp.ini.5.in @@ -230,7 +230,7 @@ The following parameters can be used in the \fB[Logging]\fR section: .TP \fBLogFile\fR=\fI@localstatedir@/log/xrdp.log\fR -This options contains the path to logfile. It can be either absolute or relative. If set to \fB\fR, log will go to stdout, which is useful for debugging\fR +This options contains the path to logfile. It can be either absolute or relative. If set to \fB\fR, log will go to stdout. Use for debugging only\fR .TP \fBLogLevel\fR=\fIlevel\fR