[gdm] daemon: close log before execing session
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] daemon: close log before execing session
- Date: Tue, 8 Mar 2011 21:26:09 +0000 (UTC)
commit 4881832fd634a958b9c4ff7ec1319fc97bf6f6af
Author: Ray Strode <rstrode redhat com>
Date: Tue Mar 8 13:05:15 2011 -0500
daemon: close log before execing session
This should prevent some misleading log messages from showing
up in syslog.
daemon/gdm-session-worker.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 5a59b20..e2d16e9 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -49,6 +49,7 @@
#include "ck-connector.h"
#include "gdm-common.h"
+#include "gdm-log.h"
#include "gdm-session-worker.h"
#include "gdm-marshal.h"
@@ -1742,6 +1743,8 @@ gdm_session_worker_start_user_session (GdmSessionWorker *worker,
dup2 (fd, STDERR_FILENO);
close (fd);
+ gdm_log_shutdown ();
+
/*
* Reset SIGPIPE to default so that any process in the user
* session get the default SIGPIPE behavior instead of ignoring
@@ -1754,6 +1757,7 @@ gdm_session_worker_start_user_session (GdmSessionWorker *worker,
environment,
TRUE);
+ gdm_log_init ();
g_debug ("GdmSessionWorker: child '%s' could not be started: %s",
worker->priv->arguments[0],
g_strerror (errno));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]