diff options
author | pjd <pjd@FreeBSD.org> | 2010-08-30 22:28:04 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-08-30 22:28:04 +0000 |
commit | 107a540b8bded70a70276e0c05c2f8e769d1c99b (patch) | |
tree | 1fd58379d64dff2bd2d388da8c5e22b8f5ad9ab7 /sbin | |
parent | f116a70c0d83974d76c3190415867683e6b4f6f0 (diff) | |
download | FreeBSD-src-107a540b8bded70a70276e0c05c2f8e769d1c99b.zip FreeBSD-src-107a540b8bded70a70276e0c05c2f8e769d1c99b.tar.gz |
Use pjdlog_exit() before fork().
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/hastd/primary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 86f274f..e018e89 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -771,14 +771,14 @@ hastd_primary(struct hast_resource *res) */ if (proto_client("socketpair://", &res->hr_ctrl) < 0) { KEEP_ERRNO((void)pidfile_remove(pfh)); - primary_exit(EX_OSERR, + pjdlog_exit(EX_OSERR, "Unable to create control sockets between parent and child"); } pid = fork(); if (pid < 0) { KEEP_ERRNO((void)pidfile_remove(pfh)); - primary_exit(EX_TEMPFAIL, "Unable to fork"); + pjdlog_exit(EX_TEMPFAIL, "Unable to fork"); } if (pid > 0) { |