Browse Source

fix launching when a pidfile is unspecified...

tags/ggatessh-v1.0.1
John-Mark Gurney 4 years ago
parent
commit
eb5536bdaa
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      ggatessh/ggatessh.c

+ 3
- 1
ggatessh/ggatessh.c View File

@@ -757,7 +757,9 @@ ggatessh_makepidfile(void)
if (ggatessh_pidfile == NULL) {
asprintf(&ggatessh_pidfile,
_PATH_VARRUN "/ggatessh.ggate%d.pid", unit);
err(EXIT_FAILURE, "Cannot allocate memory for pidfile");
if (ggatessh_pidfile == NULL)
err(EXIT_FAILURE,
"Cannot allocate memory for pidfile");
}
pfh = pidfile_open(ggatessh_pidfile, 0600, &otherpid);
if (pfh == NULL) {


Loading…
Cancel
Save