gdm r6779 - in trunk: . daemon
- From: halfline svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r6779 - in trunk: . daemon
- Date: Mon, 16 Mar 2009 20:05:47 +0000 (UTC)
Author: halfline
Date: Mon Mar 16 20:05:47 2009
New Revision: 6779
URL: http://svn.gnome.org/viewvc/gdm?rev=6779&view=rev
Log:
2009-03-16 Ray Strode <rstrode redhat com>
* daemon/gdm-slave-proxy.c (spawn_child_setup):
* daemon/gdm-server.c (server_child_setup):
* daemon/gdm-welcome-session.c (spawn_child_setup):
Use O_APPEND when opening log files.
Modified:
trunk/ChangeLog
trunk/daemon/gdm-server.c
trunk/daemon/gdm-slave-proxy.c
trunk/daemon/gdm-welcome-session.c
Modified: trunk/daemon/gdm-server.c
==============================================================================
--- trunk/daemon/gdm-server.c (original)
+++ trunk/daemon/gdm-server.c Mon Mar 16 20:05:47 2009
@@ -419,7 +419,7 @@
g_debug ("GdmServer: Opening logfile for server %s", log_path);
VE_IGNORE_EINTR (g_unlink (log_path));
- VE_IGNORE_EINTR (logfd = open (log_path, O_CREAT|O_TRUNC|O_WRONLY|O_EXCL, 0644));
+ VE_IGNORE_EINTR (logfd = open (log_path, O_CREAT|O_APPEND|O_TRUNC|O_WRONLY|O_EXCL, 0644));
g_free (log_path);
Modified: trunk/daemon/gdm-slave-proxy.c
==============================================================================
--- trunk/daemon/gdm-slave-proxy.c (original)
+++ trunk/daemon/gdm-slave-proxy.c Mon Mar 16 20:05:47 2009
@@ -139,7 +139,7 @@
rotate_logs (data->log_file, MAX_LOGS);
VE_IGNORE_EINTR (g_unlink (data->log_file));
- VE_IGNORE_EINTR (logfd = open (data->log_file, O_CREAT|O_TRUNC|O_WRONLY|O_EXCL, 0644));
+ VE_IGNORE_EINTR (logfd = open (data->log_file, O_CREAT|O_APPEND|O_TRUNC|O_WRONLY|O_EXCL, 0644));
if (logfd != -1) {
VE_IGNORE_EINTR (dup2 (logfd, 1));
Modified: trunk/daemon/gdm-welcome-session.c
==============================================================================
--- trunk/daemon/gdm-welcome-session.c (original)
+++ trunk/daemon/gdm-welcome-session.c Mon Mar 16 20:05:47 2009
@@ -482,7 +482,7 @@
rotate_logs (data->log_file, MAX_LOGS);
VE_IGNORE_EINTR (g_unlink (data->log_file));
- VE_IGNORE_EINTR (logfd = open (data->log_file, O_CREAT|O_TRUNC|O_WRONLY|O_EXCL, 0644));
+ VE_IGNORE_EINTR (logfd = open (data->log_file, O_CREAT|O_APPEND|O_TRUNC|O_WRONLY|O_EXCL, 0644));
if (logfd != -1) {
VE_IGNORE_EINTR (dup2 (logfd, 1));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]