summaryrefslogtreecommitdiffstats
path: root/utils/statd/svc_run.c
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2004-09-06 02:15:04 +0000
committerneilbrown <neilbrown>2004-09-06 02:15:04 +0000
commitaf93e0306d87bba3f703386fd6390e9bf8e76816 (patch)
treeec1caa91d3ccb07af6bd36ff583148390e56ea1d /utils/statd/svc_run.c
parent2c91715a9c8dbf18df1666f70e78d6e36e123ca0 (diff)
downloadnfs-utils-af93e0306d87bba3f703386fd6390e9bf8e76816.tar.gz
nfs-utils-af93e0306d87bba3f703386fd6390e9bf8e76816.tar.xz
nfs-utils-af93e0306d87bba3f703386fd6390e9bf8e76816.zip
Support --ha-callout for high-availability callouts
Diffstat (limited to 'utils/statd/svc_run.c')
-rw-r--r--utils/statd/svc_run.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/statd/svc_run.c b/utils/statd/svc_run.c
index 393a2fd..e2d7c97 100644
--- a/utils/statd/svc_run.c
+++ b/utils/statd/svc_run.c
@@ -60,6 +60,7 @@ static int svc_stop = 0;
* requests are put.
*/
notify_list * notify = NULL;
+int re_notify = 0;
/*
* Jump-off function.
@@ -86,6 +87,10 @@ my_svc_run(void)
for (;;) {
if (svc_stop)
return;
+ if (re_notify) {
+ notify_hosts();
+ re_notify = 0;
+ }
/* Ah, there are some notifications to be processed */
while (notify && NL_WHEN(notify) <= time(&now)) {