From 6be3a25c85fa84906d36a1e2760ec8508e3db680 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Mon, 30 Aug 2010 22:28:04 +0000 Subject: [PATCH] Use pjdlog_exit() before fork(). MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com --- sbin/hastd/primary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 86f274fda29a..e018e89a186f 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) {