summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-02-03 02:31:54 +0100
committerLennart Poettering <lennart@poettering.net>2012-02-03 05:06:03 +0100
commitcfc4eb4cbaa3434fac145cbabbd51c5f41bd20a6 (patch)
tree70c30a0e0a83e41133c441fd4bdc09c2b6a61a11 /src/service.c
parentf42806df7de0f4669c1296ab66a7f8d8784dd0f2 (diff)
socket: replace failure boolean by enum
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/service.c b/src/service.c
index 25ebca0890..b6bbfab3ef 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2402,9 +2402,9 @@ static int service_serialize(Unit *u, FILE *f, FDSet *fds) {
if (s->status_text)
unit_serialize_item(u, f, "status-text", s->status_text);
- /* There's a minor uncleanliness here: if there are multiple
- * commands attached here, we will start from the first one
- * again */
+ /* FIXME: There's a minor uncleanliness here: if there are
+ * multiple commands attached here, we will start from the
+ * first one again */
if (s->control_command_id >= 0)
unit_serialize_item(u, f, "control-command", service_exec_command_to_string(s->control_command_id));
@@ -2693,7 +2693,7 @@ static void service_sigchld_event(Unit *u, pid_t pid, int code, int status) {
else if (code == CLD_DUMPED)
f = SERVICE_FAILURE_CORE_DUMP;
else
- f = SERVICE_FAILURE_RESOURCES;
+ assert_not_reached("Unknown code");
if (s->main_pid == pid) {
/* Forking services may occasionally move to a new PID.