[gnome-session/gnome-3-8] manager: Warn on abnormal exit codes
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session/gnome-3-8] manager: Warn on abnormal exit codes
- Date: Tue, 30 Jul 2013 19:15:17 +0000 (UTC)
commit 69831367938ba46e24ee74a379c00741d2b71b98
Author: Colin Walters <walters verbum org>
Date: Fri Jun 7 15:18:33 2013 -0400
manager: Warn on abnormal exit codes
This should make it a bit easier to debug things. Some code
archaeology here doesn't reveal a reason we weren't doing so before.
https://bugzilla.gnome.org/show_bug.cgi?id=701807
gnome-session/gsm-manager.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index a738ff6..bcd4a7e 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -647,7 +647,10 @@ app_exited (GsmApp *app,
guchar exit_code,
GsmManager *manager)
{
- g_debug ("App %s exited with %d", gsm_app_peek_app_id (app), exit_code);
+ if (exit_code != 0)
+ g_warning ("App '%s' exited with code %d", gsm_app_peek_app_id (app), exit_code);
+ else
+ g_debug ("App %s exited successfully", gsm_app_peek_app_id (app));
/* Consider that non-success exit status means "crash" for required components */
if (exit_code != 0 && is_app_required (manager, app)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]