[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/icecream-make-it-cool/services
From:       Dirk Mueller <mueller () kde ! org>
Date:       2007-07-04 20:04:57
Message-ID: 1183579497.241521.24949.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 683500 by mueller:

don't kick daemons that run as user, just don't give them
any jobs. this helps the people that just don't trust the
daemon to be able to at least send out jobs


 M  +1 -6      scheduler.cpp  


--- branches/work/icecream-make-it-cool/services/scheduler.cpp #683499:683500
@@ -1113,18 +1113,13 @@
   if (!m)
     return false;
 
-  /* If we don't allow non-chroot-able daemons in the farm,
-     discard them here.  */
-  if (!m->chroot_possible)
-    return false;
-
   std::ostream& dbg = trace();
   dbg << "login " << m->nodename << " protocol version: " << c->protocol;
 
   CS *cs = static_cast<CS *>(c);
   cs->remote_port = m->port;
   cs->compiler_versions = m->envs;
-  cs->max_jobs = m->max_kids;
+  cs->max_jobs = m->chroot_possible ? m->max_kids : 0;
   cs->noremote = m->noremote;
   if ( m->nodename.length() )
     cs->nodename = m->nodename;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic