mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
(!1682) os: log: drop now meaningless XLOG_FLUSH option
Since we're not indirectly writing via FILE anymore, this option has become meaningless: it meant flushing out our in-process buffer to the kernel, but we're now doing direct write() calls anyways. xf86 still accepts the "flush" config file flag for backwards compatibility, but it hasn't any practical meaning anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -826,12 +826,10 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
|
||||
{
|
||||
if ((s = xf86GetOptValString(FlagOptions, FLAG_LOG))) {
|
||||
if (!xf86NameCmp(s, "flush")) {
|
||||
xf86Msg(X_CONFIG, "Flushing logfile enabled\n");
|
||||
LogSetParameter(XLOG_FLUSH, TRUE);
|
||||
xf86Msg(X_CONFIG, "flush log flag is noop\n");
|
||||
}
|
||||
else if (!xf86NameCmp(s, "sync")) {
|
||||
xf86Msg(X_CONFIG, "Syncing logfile enabled\n");
|
||||
LogSetParameter(XLOG_FLUSH, TRUE);
|
||||
LogSetParameter(XLOG_SYNC, TRUE);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -646,7 +646,6 @@ OsVendorInit(void)
|
||||
g_pszLogFile = LogInit(g_pszLogFile, ".old");
|
||||
|
||||
}
|
||||
LogSetParameter(XLOG_FLUSH, 1);
|
||||
LogSetParameter(XLOG_VERBOSITY, g_iLogVerbose);
|
||||
LogSetParameter(XLOG_FILE_VERBOSITY, g_iLogVerbose);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user