diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/hastd/primary.c | 2 | ||||
-rw-r--r-- | sbin/hastd/secondary.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index be1d7bb..243269d 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -886,7 +886,7 @@ hastd_primary(struct hast_resource *res) } pid = fork(); - if (pid < 0) { + if (pid == -1) { /* TODO: There's no need for this to be fatal error. */ KEEP_ERRNO((void)pidfile_remove(pfh)); pjdlog_exit(EX_TEMPFAIL, "Unable to fork"); diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c index 4f67efd..16f92b1 100644 --- a/sbin/hastd/secondary.c +++ b/sbin/hastd/secondary.c @@ -401,7 +401,7 @@ hastd_secondary(struct hast_resource *res, struct nv *nvin) } pid = fork(); - if (pid < 0) { + if (pid == -1) { KEEP_ERRNO((void)pidfile_remove(pfh)); pjdlog_exit(EX_OSERR, "Unable to fork"); } |