dbus-launch: kill bus if we can't attach to a session when requested
authorРоман Донченко <dpb corrigendum ru>
Wed, 11 Jun 2014 10:38:24 +0000 (11:38 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 11 Jun 2014 10:38:24 +0000 (11:38 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=74698
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
tools/dbus-launch.c

index 58a0322e5daf163fe4139bffd3f4ff42a94f54f4..41a20e83b9802da2ef7461d687b881625461d719 100644 (file)
@@ -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)