cvs commit: ports/Tools/portbuild/scripts dosetupnode

Kris Kennaway kris at FreeBSD.org
Mon Dec 27 21:50:38 PST 2004


kris        2004-12-28 05:50:37 UTC

  FreeBSD ports repository

  Modified files:
    Tools/portbuild/scripts dosetupnode 
  Log:
  * Support the -norsync argument to only remove the existing build chroots
    on a disconnected client, without running the time-consuming rsyncs.
    This is useful when a build is interrupted and needs to be restarted.
  
  * After we have cleaned up the machine, reset the queue counter by using
    pollmachine -queue.  This has a race condition if other builds are being
    dispatched to the machine (e.g. builds on another branch):
  
    getmachine can claim a directory and increment the counter, then the
    machine is polled and finds e.g. 0 chroots in use, and resets the
    counter to 0, then claim-chroot is run and the build dispatched, with
    the counter now off-by-one.  This could be fixed by running
    claim-chroot with the .lock held, but this turns out to be too
    time-consuming.  A two-level lock approach might also fix this
    efficiently.
  
  Revision  Changes    Path
  1.4       +8 -2      ports/Tools/portbuild/scripts/dosetupnode


More information about the cvs-ports mailing list