From 5c7ea35c3dfc564f5c5679a663d5b9c101c61910 Mon Sep 17 00:00:00 2001 From: Роман Донченко Date: Wed, 11 Jun 2014 11:38:24 +0100 Subject: dbus-launch: kill bus if we can't attach to a session when requested Bug: https://bugs.freedesktop.org/show_bug.cgi?id=74698 Reviewed-by: Simon McVittie --- tools/dbus-launch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c index 58a0322e..41a20e83 100644 --- a/tools/dbus-launch.c +++ b/tools/dbus-launch.c @@ -536,7 +536,7 @@ kill_bus_when_session_ends (void) if (tty_fd < 0 && x_fd < 0) { fprintf (stderr, "No terminal on standard input and no X display; cannot attach message bus to session lifetime\n"); - exit (1); + kill_bus_and_exit (1); } while (TRUE) -- cgit v1.2.3