commit 7fdc3e586448ae55ae38bef76bb5a0a34538e5e6 from: Mark Jamsek date: Fri Dec 30 09:10:38 2022 UTC gotd: nix trailing whitespace and indentation fix ok op@, stsp@ commit - 44587340e4924f8f07bf02c57a9a1c2527c2d8d4 commit + 7fdc3e586448ae55ae38bef76bb5a0a34538e5e6 blob - b79d7d9818993976319266976df74331b6ba4d71 blob + 7c7b569eb691bdd7a3f95d2c59bedfe96c54f7bc --- gotd/gotd.c +++ gotd/gotd.c @@ -339,7 +339,7 @@ wait_for_child(pid_t child_pid) } else if (WIFSIGNALED(status)) { log_warnx("child PID %ld terminated; signal %d", (long)pid, WTERMSIG(status)); - } + } } while (pid != -1 || (pid == -1 && errno == EINTR)); } @@ -2028,9 +2028,8 @@ gotd_dispatch_auth_child(int fd, short event, void *ar 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); @@ -2260,7 +2259,7 @@ start_repo_child(struct gotd_client *client, enum gotd 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");