~ubuntu-branches/ubuntu/raring/gnome-session/raring

« back to all changes in this revision

Viewing changes to gnome-session/gsm-manager.c

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2012-06-11 12:11:00 UTC
  • mfrom: (1.1.77)
  • Revision ID: package-import@ubuntu.com-20120611121100-4v8ck97j20kykbbp
Tags: 3.5.2-0ubuntu1
* debian/watch: Track unstable versions 
* New upstream release (LP: #1011555).
  + Fail softer in the face of spotty session bus
  + Consider that required component that exits with 1 has crashed
* Refresh patches to apply cleanly 

Show diffs side-by-side

added added

removed removed

Lines of Context:
664
664
{
665
665
        g_debug ("App %s exited with %d", gsm_app_peek_app_id (app), exit_code);
666
666
 
667
 
        app_event_during_startup (manager, app);
 
667
        /* Consider that "exit = 1" means "crash" for required components */
 
668
        if (exit_code == 1 && is_app_required (manager, app)) {
 
669
                if (gsm_app_peek_autorestart (app)) {
 
670
                        g_debug ("Component '%s' is autorestart, ignoring exited(1) signal",
 
671
                                 gsm_app_peek_app_id (app));
 
672
                        return;
 
673
                }
 
674
 
 
675
                _restart_app (manager, app);
 
676
        } else {
 
677
                app_event_during_startup (manager, app);
 
678
        }
668
679
}
669
680
 
670
681
static void