Date: Mon, 30 Aug 2010 22:28:04 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r212034 - head/sbin/hastd Message-ID: <201008302228.o7UMS4tb009802@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Mon Aug 30 22:28:04 2010 New Revision: 212034 URL: http://svn.freebsd.org/changeset/base/212034 Log: Use pjdlog_exit() before fork(). MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Mon Aug 30 22:26:42 2010 (r212033) +++ head/sbin/hastd/primary.c Mon Aug 30 22:28:04 2010 (r212034) @@ -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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008302228.o7UMS4tb009802>