]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
bus: exit on fatal errors even if not syslogging
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 22 Jan 2015 15:46:27 +0000 (15:46 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 2 Feb 2015 18:38:07 +0000 (18:38 +0000)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88808
Reviewed-by: Philip Withnall
bus/bus.c

index f8b50b4afa3cac93d5822c16e6f42772ea5653ed..f51ee991b6c691cceb04a45dca3cb407117eabcd 100644 (file)
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -1339,6 +1339,10 @@ bus_context_log (BusContext *context, DBusSystemLogSeverity severity, const char
       vfprintf (stderr, msg, args);
       fprintf (stderr, "\n");
       va_end (args);
+
+      if (severity == DBUS_SYSTEM_LOG_FATAL)
+        _dbus_exit (1);
+
       return;
     }