Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 1995 12:26:25 -0700
From:      Bill Paul <wpaul>
To:        CVS-commiters, cvs-lib
Subject:   cvs commit: src/lib/libc/yp yplib.c
Message-ID:  <199504091926.MAA29804@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
wpaul       95/04/09 12:26:25

  Modified:    lib/libc/yp yplib.c
  Log:
  Fix behavior of YP library routines in environments with multiple domains,
  where one or more of the non-default domains are not yet bound.
  
  If we make a YP request for a domain other than the default domain,
  and there is no binding for the new domain yet, _yp_dobind() sees
  that the /var/yp/binding/DOMAIN.VERS file for the unbound domain is
  not locked (by ypbind) and from this it concludes that the NIS system
  is dead, so it gives up.
  
  This behavior has been changed: before giving up in this case, we now
  make a second check to see if the binding file for the *default* domain
  is also not locked. Only if the default domain binding file is also
  unlocked to we now assume that ypbind has bought the farm and bail out.
  (Note: this assumes that the user hasn't changed the default domain
  while ypbind is running.)
  
  With this change, _do_ypbind() is allowed to proceed into the next
  section of code wherein it prods ypbind into establishing a binding
  for the new domain. This first call times out after ten seconds,
  after which it should retry and succeed. From then on, the binding
  for the second domain should be handled normally.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504091926.MAA29804>