changeset 2910:e124bf7a1aa0

6480627 combination.02 fails on zones machines when ran with NSCD enabled
author michen
date Thu, 12 Oct 2006 19:12:54 -0700
parents f92a56b200aa
children 762d42053de9
files usr/src/cmd/nscd/nscd_getentctx.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/nscd/nscd_getentctx.c	Thu Oct 12 16:34:25 2006 -0700
+++ b/usr/src/cmd/nscd/nscd_getentctx.c	Thu Oct 12 19:12:54 2006 -0700
@@ -295,6 +295,7 @@
 
 	gnctx->dbi = params->dbi;
 	gnctx->cookie = _nscd_get_cookie();
+	gnctx->pid = -1;
 
 	if (_nscd_get_nsw_state(&db_root, params) != NSCD_SUCCESS) {
 		free(gnctx);
@@ -576,6 +577,8 @@
 	/*CONSTCOND*/
 	while (1) {
 
+		(void) sleep(60);
+
 		(void) rw_rdlock(&getent_ctxDB_rwlock);
 
 		for (ep = _nscd_walk_db(getent_ctxDB, &cookie); ep != NULL;
@@ -623,8 +626,6 @@
 			gctx = c;
 		}
 		first = last = NULL;
-
-		(void) sleep(60);
 	}
 	/*NOTREACHED*/
 	/*LINTED E_FUNC_HAS_NO_RETURN_STMT*/