From 3d19056cb02d0619e52e6d1cbf308525c6279287 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Mon, 8 Sep 2008 23:11:42 +0000 Subject: Log the slave messages to a file. 2008-09-08 William Jon McCann * daemon/gdm-display.c (gdm_display_real_manage): * daemon/gdm-slave-proxy.c (rotate_logs), (spawn_child_setup), (spawn_command_line_async), (spawn_slave), (gdm_slave_proxy_set_log_path), (gdm_slave_proxy_set_property), (gdm_slave_proxy_get_property), (gdm_slave_proxy_class_init): * daemon/gdm-slave-proxy.h: Log the slave messages to a file. svn path=/trunk/; revision=6483 --- daemon/gdm-display.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'daemon/gdm-display.c') diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c index f93c5027..50c2cd4e 100644 --- a/daemon/gdm-display.c +++ b/daemon/gdm-display.c @@ -458,6 +458,8 @@ static gboolean gdm_display_real_manage (GdmDisplay *display) { char *command; + char *log_file; + char *log_path; g_return_val_if_fail (GDM_IS_DISPLAY (display), FALSE); @@ -483,10 +485,15 @@ gdm_display_real_manage (GdmDisplay *display) G_CALLBACK (slave_died), display); + log_file = g_strdup_printf ("%s-slave.log", display->priv->x11_display_name); + log_path = g_build_filename (LOGDIR, log_file, NULL); + g_free (log_file); + gdm_slave_proxy_set_log_path (display->priv->slave_proxy, log_path); + g_free (log_path); + command = g_strdup_printf ("%s --display-id %s", display->priv->slave_command, display->priv->id); - gdm_slave_proxy_set_command (display->priv->slave_proxy, command); g_free (command); -- cgit v1.2.1