From 52feff78c7fa85b2654809fc0a0844b0c9eb631e Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 23 Jun 2008 23:43:27 +0000 Subject: [PATCH] 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 --- src/slave/kpropd.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c index 82de726b5f..fd46819a18 100644 --- a/src/slave/kpropd.c +++ b/src/slave/kpropd.c @@ -632,13 +632,21 @@ reinit: (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; } } -- 2.47.2