In the shutdown modes, we can be screwed by the fact that we only exit when resmgr->in_use() is false.  This is based on states.  If we're (for example) in claimed/idle when the shutdown comes, we won't exit right away (since we're in a state that is considered in use... claimed), but we'll never hit the reaper for a starter and decide that we're finally free to exit.  So, we just start a timer to poll every 5 seconds to see if we're free.  We still check in the reaper, but we're not dependent on a starter exiting to know when a state change has occured that means we're finally safe to exit.
In the shutdown modes, we can be screwed by the fact that we only exit
when resmgr->in_use() is false.  This is based on states.  If we're
(for example) in claimed/idle when the shutdown comes, we won't exit
right away (since we're in a state that is considered in
use... claimed), but we'll never hit the reaper for a starter and
decide that we're finally free to exit.  So, we just start a timer to
poll every 5 seconds to see if we're free.  We still check in the
reaper, but we're not dependent on a starter exiting to know when a
state change has occured that means we're finally safe to exit.

htcondor/htcondor,djw8605/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,htcondor/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/condor,bbockelm/condor-network-accounting,neurodebian/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/condor,djw8605/htcondor,djw8605/htcondor,clalancette/condor-dcloud,djw8605/htcondor,clalancette/condor-dcloud,zhangzhehust/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,bbockelm/condor-network-accounting,zhangzhehust/htcondor,djw8605/condor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,djw8605/htcondor,djw8605/condor,djw8605/htcondor,neurodebian/htcondor,neurodebian/htcondor,htcondor/htcondor,djw8605/htcondor,neurodebian/htcondor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,clalancette/condor-dcloud,htcondor/htcondor,neurodebian/htcondor,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,clalancette/condor-dcloud,neurodebian/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,djw8605/condor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,djw8605/condor,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,djw8605/htcondor,htcondor/htcondor,djw8605/htcondor,djw8605/condor,djw8605/condor,htcondor/htcondor,bbockelm/condor-network-accounting,zhangzhehust/htcondor,neurodebian/htcondor,clalancette/condor-dcloud