summaryrefslogtreecommitdiff
path: root/bus/activation.c
diff options
context:
space:
mode:
authorChengwei Yang <chengwei.yang@intel.com>2013-10-09 08:50:37 +0800
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-10-09 10:51:39 +0100
commit867bdd890fc3e4da9246932461203a682ad6ec70 (patch)
tree7bcd6b833a756f24839ebebb0febea0a3bfd5722 /bus/activation.c
parent76c5deff5c50c118e40fcfd245f60f1b4f7c4cbd (diff)
downloaddbus-867bdd890fc3e4da9246932461203a682ad6ec70.tar.gz
launch-helper: fix error code parsing
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66728 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'bus/activation.c')
-rw-r--r--bus/activation.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bus/activation.c b/bus/activation.c
index e03b6fec..77357bea 100644
--- a/bus/activation.c
+++ b/bus/activation.c
@@ -1289,6 +1289,10 @@ handle_servicehelper_exit_error (int exit_code,
{
switch (exit_code)
{
+ case BUS_SPAWN_EXIT_CODE_CONFIG_INVALID:
+ dbus_set_error (error, DBUS_ERROR_SPAWN_CONFIG_INVALID,
+ "Invalid configuration (missing or empty <user>?)");
+ break;
case BUS_SPAWN_EXIT_CODE_NO_MEMORY:
dbus_set_error (error, DBUS_ERROR_NO_MEMORY,
"Launcher could not run (out of memory)");
@@ -1325,6 +1329,7 @@ handle_servicehelper_exit_error (int exit_code,
dbus_set_error (error, DBUS_ERROR_SPAWN_CHILD_SIGNALED,
"Launched child was signaled, it probably crashed");
break;
+ case BUS_SPAWN_EXIT_CODE_GENERIC_FAILURE:
default:
dbus_set_error (error, DBUS_ERROR_SPAWN_CHILD_EXITED,
"Launch helper exited with unknown return code %i", exit_code);