svn commit: r212034 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Mon Aug 30 22:28:05 UTC 2010
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) {
More information about the svn-src-head
mailing list