commit - 44587340e4924f8f07bf02c57a9a1c2527c2d8d4
commit + 7fdc3e586448ae55ae38bef76bb5a0a34538e5e6
blob - b79d7d9818993976319266976df74331b6ba4d71
blob + 7c7b569eb691bdd7a3f95d2c59bedfe96c54f7bc
--- gotd/gotd.c
+++ gotd/gotd.c
} else if (WIFSIGNALED(status)) {
log_warnx("child PID %ld terminated; signal %d",
(long)pid, WTERMSIG(status));
- }
+ }
} while (pid != -1 || (pid == -1 && errno == EINTR));
}
else
proc_type = PROC_REPO_READ;
- err = start_repo_child(client, proc_type, repo,
- gotd.argv0, gotd.confpath, gotd.daemonize,
- gotd.verbosity);
+ err = start_repo_child(client, proc_type, repo, gotd.argv0,
+ gotd.confpath, gotd.daemonize, gotd.verbosity);
done:
if (err)
log_warnx("uid %d: %s", client->euid, err->msg);
if (proc_type != PROC_REPO_READ && proc_type != PROC_REPO_WRITE)
return got_error_msg(GOT_ERR_NOT_IMPL, "bad process type");
-
+
proc = calloc(1, sizeof(*proc));
if (proc == NULL)
return got_error_from_errno("calloc");