[Xfce4-commits] <libxfce4ui:master> Print warning before calling exit(0) in the session client.

Nick Schermer noreply at xfce.org
Sun Mar 14 21:30:03 CET 2010


Updating branch refs/heads/master
         to 19013f156f9275cab1316363ad073f5de7a3b503 (commit)
       from 7b83b640103b47982b2e43831e893c16b722843b (commit)

commit 19013f156f9275cab1316363ad073f5de7a3b503
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Mar 14 21:27:40 2010 +0100

    Print warning before calling exit(0) in the session client.

 libxfce4ui/xfce-sm-client.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/libxfce4ui/xfce-sm-client.c b/libxfce4ui/xfce-sm-client.c
index 98ca09d..0884afc 100644
--- a/libxfce4ui/xfce-sm-client.c
+++ b/libxfce4ui/xfce-sm-client.c
@@ -1080,8 +1080,12 @@ xsmp_die(SmcConn smc_conn,
                                     0, FALSE))
     {
         g_signal_emit(G_OBJECT(sm_client), signals[SIG_QUIT], 0, NULL);
-    } else
+    } else {
+        g_critical ("XfceSMClient will now call exit(0) which will abort your "
+                    "application. It is highly recommended to implement the "
+                    "\"quit\" signal.");
         exit(0);
+    }
 }
 
 static void



More information about the Xfce4-commits mailing list