commit 46ecc01f5bf28403be0e41b8438bfbec24faadef from: Mark Jamsek via: Thomas Adam date: Fri Dec 30 14:58:04 2022 UTC gotd: nix trailing whitespace and indentation fix ok op@, stsp@ commit - b942ab080a771fcaa36e5806fe6ee2ad2a311c8a commit + 46ecc01f5bf28403be0e41b8438bfbec24faadef blob - 79a12fe132a7c0b06fc5c57a696e6e7570a953d4 blob + 3634c75903e2e1fc5faa8c465bd5ac17c3653482 --- 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)); } @@ -2027,9 +2027,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); @@ -2259,7 +2258,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");