summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-04-28 22:39:47 +0000
committerpjd <pjd@FreeBSD.org>2010-04-28 22:39:47 +0000
commit0b8041abddf4130f04938e6ee94d4b703d62cea5 (patch)
treebc4df65476331649befd1e36e375e1ca9f1eb66f /sbin/hastd
parent9112a6190b5b7cda3b136f493f0fe2e83f186143 (diff)
downloadFreeBSD-src-0b8041abddf4130f04938e6ee94d4b703d62cea5.zip
FreeBSD-src-0b8041abddf4130f04938e6ee94d4b703d62cea5.tar.gz
Mark temporary issues as such.
MFC after: 3 days
Diffstat (limited to 'sbin/hastd')
-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 0915154..73f722b 100644
--- a/sbin/hastd/primary.c
+++ b/sbin/hastd/primary.c
@@ -480,7 +480,7 @@ init_remote(struct hast_resource *res, struct proto_conn **inp,
/* 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) {
OpenPOWER on IntegriCloud