X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fservice.c;h=b6bbfab3efad1c2e195b92daa3a6b2b453a31aab;hb=cfc4eb4cbaa3434fac145cbabbd51c5f41bd20a6;hp=25ebca08909df82f1ac3a4c4378045e7229c665a;hpb=f42806df7de0f4669c1296ab66a7f8d8784dd0f2;p=elogind.git diff --git a/src/service.c b/src/service.c index 25ebca089..b6bbfab3e 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.