client/tools/osad/src/osad.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit df8fd7dddba65f55305454d4b32a53ee2fe59813
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Fri Oct 21 17:19:47 2011 +0200
679353 - automatically detect system re-registration
This fix is to avoid the need to re-start osad service after
the machine has been re-registered w/ Spacewalk.
By setting the select() timeout (currently to 180 seconds), we
will allow osad to re-enter the process_once() routine, which
takes care of the re-registration detection. Otherwise the system
could have been stuck in an infinite select().
diff --git a/client/tools/osad/src/osad.py b/client/tools/osad/src/osad.py
index 662e641..f0b2351 100644
--- a/client/tools/osad/src/osad.py
+++ b/client/tools/osad/src/osad.py
@@ -239,7 +239,7 @@ class Runner(jabber_lib.Runner):
config = self.read_config()
raise jabber_lib.NeedRestart
- client.process(timeout=None)
+ client.process(timeout=180)
def read_config(self):
ret = {}
Show replies by date