|
@@ -757,7 +757,9 @@ ggatessh_makepidfile(void) |
|
|
if (ggatessh_pidfile == NULL) { |
|
|
if (ggatessh_pidfile == NULL) { |
|
|
asprintf(&ggatessh_pidfile, |
|
|
asprintf(&ggatessh_pidfile, |
|
|
_PATH_VARRUN "/ggatessh.ggate%d.pid", unit); |
|
|
_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); |
|
|
pfh = pidfile_open(ggatessh_pidfile, 0600, &otherpid); |
|
|
if (pfh == NULL) { |
|
|
if (pfh == NULL) { |
|
|