aboutsummaryrefslogtreecommitdiffstats
path: root/enums
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2016-03-01 16:21:15 -0600
committerPeter Seebach <peter.seebach@windriver.com>2016-03-01 16:21:24 -0600
commit77ee254a6c974aad9bcab2c58c9ee9e0880c9718 (patch)
tree1a9155a8198005d46693219322e602eabfe2924d /enums
parent00e66ef8792f832776cabb6d0108505d51b96fe7 (diff)
downloadpseudo-77ee254a6c974aad9bcab2c58c9ee9e0880c9718.tar.gz
pseudo-77ee254a6c974aad9bcab2c58c9ee9e0880c9718.tar.bz2
pseudo-77ee254a6c974aad9bcab2c58c9ee9e0880c9718.zip
Server launch reworking.
This is the big overhaul to have the server provide meaningful exit status to clients. In the process, I discovered that the server was running with signals blocked if launched by a client, which is not a good thing, and prevented this from working as intended. Still looking to see why more than one server spawn seems to happen.
Diffstat (limited to 'enums')
-rw-r--r--enums/exit_status.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/enums/exit_status.in b/enums/exit_status.in
new file mode 100644
index 0000000..e02b1bc
--- /dev/null
+++ b/enums/exit_status.in
@@ -0,0 +1,16 @@
+exit_status: PSEUDO_EXIT; char * message = "exit status unknown"
+# 0 indicates success. The others indicate where in the startup process
+# something went wrong, for any point at which we'd exit.
+general, "unspecified error"
+fork_failed, "fork failed"
+lock_path, "path allocation failure for lock file"
+lock_held, "lock already held by another process"
+lock_failed, "could not create/lock lockfile"
+timeout, "child process timed out"
+waitpid, "waitpid() for child process failed unexpectedly"
+socket_create, "couldn't create socket"
+socket_fd, "couldn't move socket to safe file descriptor"
+socket_path, "path allocation failure for server socket"
+socket_unlink, "couldn't unlink existing server socket"
+socket_bind, "couldn't bind server socket"
+socket_listen, "couldn't listen on server socket"