summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-08-30 22:28:04 +0000
committerpjd <pjd@FreeBSD.org>2010-08-30 22:28:04 +0000
commit107a540b8bded70a70276e0c05c2f8e769d1c99b (patch)
tree1fd58379d64dff2bd2d388da8c5e22b8f5ad9ab7 /sbin
parentf116a70c0d83974d76c3190415867683e6b4f6f0 (diff)
downloadFreeBSD-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.c4
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) {
OpenPOWER on IntegriCloud