summaryrefslogtreecommitdiffstats
path: root/bus/activation-exit-codes.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2007-07-26 23:01:14 +0000
committerHavoc Pennington <hp@redhat.com>2007-07-26 23:01:14 +0000
commitbdbab1212390d85a82d4195fa67a5c63ac0678cb (patch)
tree25f905d227f1a703bec0d64dcb6c8916cfed5f8b /bus/activation-exit-codes.h
parentba38a9b12ffee5d07f1e4a2a9585805695795219 (diff)
2007-07-26 Havoc Pennington <hp@redhat.com>
* bus/config-parser-trivial.c (check_return_values): disable a test that hardcoded the bus user's name * bus/dispatch.c (bus_dispatch_test_conf): remove the "if (!use_launcher)" around the tests, they were only failing because we didn't pass through all the expected errors from the helper. * bus/activation-exit-codes.h (BUS_SPAWN_EXIT_CODE_CHILD_SIGNALED): add a code for child segfaulting (BUS_SPAWN_EXIT_CODE_GENERIC_FAILURE): make "1" be a generic failure code, so if a third party launch helper were written it could just always return 1 on failure.
Diffstat (limited to 'bus/activation-exit-codes.h')
-rw-r--r--bus/activation-exit-codes.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/bus/activation-exit-codes.h b/bus/activation-exit-codes.h
index 86a005ce..af6952e9 100644
--- a/bus/activation-exit-codes.h
+++ b/bus/activation-exit-codes.h
@@ -25,15 +25,21 @@
#ifndef BUS_ACTIVATION_EXIT_CODES_H
#define BUS_ACTIVATION_EXIT_CODES_H
-/** Return codes from the launch helper - not public API */
-#define BUS_SPAWN_EXIT_CODE_NO_MEMORY 1
-#define BUS_SPAWN_EXIT_CODE_CONFIG_INVALID 2
-#define BUS_SPAWN_EXIT_CODE_SETUP_FAILED 3
-#define BUS_SPAWN_EXIT_CODE_NAME_INVALID 4
-#define BUS_SPAWN_EXIT_CODE_SERVICE_NOT_FOUND 5
-#define BUS_SPAWN_EXIT_CODE_PERMISSIONS_INVALID 6
-#define BUS_SPAWN_EXIT_CODE_FILE_INVALID 7
-#define BUS_SPAWN_EXIT_CODE_EXEC_FAILED 8
-#define BUS_SPAWN_EXIT_CODE_INVALID_ARGS 9
+/** Return codes from the launch helper - not public API. However,
+ * presumably if some third party did write their own launch helper,
+ * they would have to rely on these, or at least always return
+ * 1 for GENERIC_FAILURE.
+ */
+#define BUS_SPAWN_EXIT_CODE_GENERIC_FAILURE 1
+#define BUS_SPAWN_EXIT_CODE_NO_MEMORY 2
+#define BUS_SPAWN_EXIT_CODE_CONFIG_INVALID 3
+#define BUS_SPAWN_EXIT_CODE_SETUP_FAILED 4
+#define BUS_SPAWN_EXIT_CODE_NAME_INVALID 5
+#define BUS_SPAWN_EXIT_CODE_SERVICE_NOT_FOUND 6
+#define BUS_SPAWN_EXIT_CODE_PERMISSIONS_INVALID 7
+#define BUS_SPAWN_EXIT_CODE_FILE_INVALID 8
+#define BUS_SPAWN_EXIT_CODE_EXEC_FAILED 9
+#define BUS_SPAWN_EXIT_CODE_INVALID_ARGS 10
+#define BUS_SPAWN_EXIT_CODE_CHILD_SIGNALED 11
#endif /* BUS_ACTIVATION_EXIT_CODES_H */