summaryrefslogtreecommitdiff
path: root/bus/bus.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2015-01-22 15:46:27 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-02 18:38:07 +0000
commitef06f2a23344898e13675c15e9c8475f6768ddee (patch)
tree27c617d8c0be97058180bc0d69ac4a49eedb4d67 /bus/bus.c
parent795ea3007ed211e50249e2f886023a8701dd76a9 (diff)
downloaddbus-ef06f2a23344898e13675c15e9c8475f6768ddee.tar.gz
bus: exit on fatal errors even if not syslogging
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88808 Reviewed-by: Philip Withnall
Diffstat (limited to 'bus/bus.c')
-rw-r--r--bus/bus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bus/bus.c b/bus/bus.c
index f8b50b4a..f51ee991 100644
--- 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;
}