Permalink
Browse files

On failures other than bad parameters in the config file, sleep and

then try again, rather than exiting.  This includes the case of not
being able to reach a KDC to get credentials.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/sun-iprop@20463 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information...
1 parent 1fe52ef commit 83e25ec4e9d04cdc273b0718268dc097f97a249d raeburn committed Jun 23, 2008
Showing with 13 additions and 5 deletions.
  1. +13 −5 src/slave/kpropd.c
View
@@ -632,13 +632,21 @@ krb5_error_code do_iprop(kdb_log_context *log_ctx)
(void) sleep(backoff_time);
goto reinit;
} else {
+ if (retval == KADM5_BAD_CLIENT_PARAMS ||
+ retval == KADM5_BAD_SERVER_PARAMS) {
+ com_err(progname, retval,
+ _("while initializing %s interface"),
+ progname);
+
+ usage();
+ }
+ reinit_cnt++;
com_err(progname, retval,
- _("while initializing %s interface"),
+ _("while initializing %s interface, retrying"),
progname);
- if (retval == KADM5_BAD_CLIENT_PARAMS ||
- retval == KADM5_BAD_SERVER_PARAMS)
- usage();
- exit(1);
+ backoff_time = backoff_from_master(&reinit_cnt);
+ sleep(backoff_time);
+ goto reinit;
}
}

0 comments on commit 83e25ec

Please sign in to comment.