summaryrefslogtreecommitdiff
path: root/daemon/gdm-display.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2017-09-28 15:33:50 -0400
committerRay Strode <rstrode@redhat.com>2017-10-03 16:18:28 -0400
commit69420ae2c587c75cfb915330d4f60f866281345b (patch)
treec3db9bef9e74a801c0f42e31d0a1b8ab6b78800c /daemon/gdm-display.c
parente6f5fa6d95e2661477471c6ff1a6a0c379421785 (diff)
downloadgdm-69420ae2c587c75cfb915330d4f60f866281345b.tar.gz
Use standard exit codes.
Use EXIT_ defines for readibility. There were some exit codes > 1, but they don't seem to be checked by any of the parent process code. This does mean that the logs might have changed, but modern logging techniques have probably made this obsolete. https://bugzilla.gnome.org/show_bug.cgi?id=788307
Diffstat (limited to 'daemon/gdm-display.c')
-rw-r--r--daemon/gdm-display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c
index 2d7eacf5..1f1ecb6d 100644
--- a/daemon/gdm-display.c
+++ b/daemon/gdm-display.c
@@ -1103,7 +1103,7 @@ register_display (GdmDisplay *self)
if (self->priv->connection == NULL) {
g_critical ("error getting system bus: %s", error->message);
g_error_free (error);
- exit (1);
+ exit (EXIT_FAILURE);
}
self->priv->object_skeleton = g_dbus_object_skeleton_new (self->priv->id);