summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/primary.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-08-29 21:41:53 +0000
committerpjd <pjd@FreeBSD.org>2010-08-29 21:41:53 +0000
commit70a52f0307093bb9b0b23ae15d717c7481911ddf (patch)
treee8bd48022ec4570df380ba26e88e0fec1817f491 /sbin/hastd/primary.c
parent9a66bc9a3072bb3aaa48a140ee6c2ef69809de24 (diff)
downloadFreeBSD-src-70a52f0307093bb9b0b23ae15d717c7481911ddf.zip
FreeBSD-src-70a52f0307093bb9b0b23ae15d717c7481911ddf.tar.gz
Allow to run hooks from the main hastd process.
MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
Diffstat (limited to 'sbin/hastd/primary.c')
-rw-r--r--sbin/hastd/primary.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index c495f10..f0b8423 100644
--- a/sbin/hastd/primary.c
+++ b/sbin/hastd/primary.c
@@ -786,7 +786,9 @@ hastd_primary(struct hast_resource *res)
res->hr_workerpid = pid;
return;
}
+
(void)pidfile_close(pfh);
+ hook_fini();
setproctitle("%s (primary)", res->hr_name);
OpenPOWER on IntegriCloud