commit - b942ab080a771fcaa36e5806fe6ee2ad2a311c8a
commit + 46ecc01f5bf28403be0e41b8438bfbec24faadef
blob - 79a12fe132a7c0b06fc5c57a696e6e7570a953d4
blob + 3634c75903e2e1fc5faa8c465bd5ac17c3653482
--- 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");