Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Apr 2010 22:39:48 +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: r207347 - head/sbin/hastd
Message-ID:  <201004282239.o3SMdmNt088530@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Wed Apr 28 22:39:47 2010
New Revision: 207347
URL: http://svn.freebsd.org/changeset/base/207347

Log:
  Mark temporary issues as such.
  
  MFC after:	3 days

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c	Wed Apr 28 22:29:17 2010	(r207346)
+++ head/sbin/hastd/primary.c	Wed Apr 28 22:39:47 2010	(r207347)
@@ -480,7 +480,7 @@ init_remote(struct hast_resource *res, s
 
 	/* Prepare outgoing connection with remote node. */
 	if (proto_client(res->hr_remoteaddr, &out) < 0) {
-		primary_exit(EX_OSERR, "Unable to create connection to %s",
+		primary_exit(EX_TEMPFAIL, "Unable to create connection to %s",
 		    res->hr_remoteaddr);
 	}
 	/* Try to connect, but accept failure. */
@@ -739,7 +739,7 @@ hastd_primary(struct hast_resource *res)
 	pid = fork();
 	if (pid < 0) {
 		KEEP_ERRNO((void)pidfile_remove(pfh));
-		primary_exit(EX_OSERR, "Unable to fork");
+		primary_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?201004282239.o3SMdmNt088530>