From 0c1d65998907930678da2d091789446f2c344d5d Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 24 Jun 2014 14:28:51 +0200 Subject: IFP: Return a specific value on failure connecting to the system bus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need to treat the failure to connect to the system bus as non-fatal. In this commit, we introduce a special error code and only print a DEBUG message when this error code is returned from the startup function. Reviewed-by: Pavel Březina --- src/util/util_errors.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/util/util_errors.c') diff --git a/src/util/util_errors.c b/src/util/util_errors.c index 11356742..aa569319 100644 --- a/src/util/util_errors.c +++ b/src/util/util_errors.c @@ -60,6 +60,7 @@ struct err_string error_to_str[] = { { "Bus message has no sender" }, /* ERR_SBUS_NO_SENDER */ { "User/Group SIDs not found" }, /* ERR_NO_SIDS */ { "Bus method not supported" }, /* ERR_SBUS_NOSUP */ + { "Cannot connect to system bus" }, /* ERR_NO_SYSBUS */ }; -- cgit