[Xfce4-commits] <xfce4-session:nick/shutdown-cleanup> Exit errors should not terminate.

Nick Schermer noreply at xfce.org
Sun Jan 15 10:22:06 CET 2012


Updating branch refs/heads/nick/shutdown-cleanup
         to 6f83ae6226a6f9db7bc029c01df2e07dcff3c63a (commit)
       from a686f54a2029ea9ca774e240ab4bdb610429fc7f (commit)

commit 6f83ae6226a6f9db7bc029c01df2e07dcff3c63a
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Dec 1 20:12:07 2011 +0100

    Exit errors should not terminate.

 xfce4-session/main.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/xfce4-session/main.c b/xfce4-session/main.c
index e7ac755..01ef93e 100644
--- a/xfce4-session/main.c
+++ b/xfce4-session/main.c
@@ -90,7 +90,7 @@ setup_environment (void)
   sm = g_getenv ("SESSION_MANAGER");
   if (sm != NULL && strlen (sm) > 0)
     {
-      fprintf (stderr, "xfce4-session: Another session manager is already running\n");
+      g_printerr ("%s: Another session manager is already running\n", PACKAGE_NAME);
       exit (EXIT_FAILURE);
     }
 
@@ -172,8 +172,8 @@ xfsm_dbus_init (void)
                                NULL);
   if (DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER != ret)
     {
-      g_error ("Another session manager is already running");
-      exit (1);
+      g_printerr ("%s: Another session manager is already running\n", PACKAGE_NAME);
+      exit (EXIT_FAILURE);
     }
 }
 


More information about the Xfce4-commits mailing list