mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
Log exit status of run tasks in debug mode
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
96bb3f5c6c
commit
7393072120
1 file changed
+3
@@ -805,6 +805,9 @@ static int service_start(svc_t *svc)
|
||||
switch (svc->type) {
|
||||
case SVC_TYPE_RUN:
|
||||
svc->status = complete(svc->cmd, pid);
|
||||
dbg("collected %s(%d), normal exit: %d, signaled: %d, exit code: %d",
|
||||
svc_ident(svc, NULL, 0), pid, WIFEXITED(svc->status),
|
||||
WIFSIGNALED(svc->status), WEXITSTATUS(svc->status));
|
||||
if (WIFEXITED(svc->status) && !WEXITSTATUS(svc->status)) {
|
||||
svc->started = 1;
|
||||
result = 0;
|
||||
|
||||
Reference in new issue
Block a user