diff options
-rw-r--r-- | bus/services.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bus/services.c b/bus/services.c index 7af37d7a..bc2ffc1f 100644 --- a/bus/services.c +++ b/bus/services.c @@ -479,6 +479,11 @@ bus_registry_acquire_service (BusRegistry *registry, bus_connection_get_name (connection) : "(inactive)", _dbus_string_get_const_data (service_name)); + + /* If we hit OOM while setting the error, this will syslog "out of memory" + * which is itself an indication that something is seriously wrong */ + bus_context_log_literal (registry->context, DBUS_SYSTEM_LOG_SECURITY, + error->message); goto out; case BUS_RESULT_LATER: retval = BUS_RESULT_LATER; |