- 20 Aug, 2009 1 commit
-
-
Guido Trotter authored
Mainloop currently calls all handlers with the signal number harcoded to sigchild. Fixing this. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- 20 Mar, 2009 1 commit
-
-
Guido Trotter authored
set timeout_needs_update to False after calculating the timeout. Reviewed-by: imsnah
-
- 11 Nov, 2008 1 commit
-
-
Michael Hanselmann authored
This is a fallout from my work on the HTTP client class. Repeating timers are prepared, but not yet implemented. Reviewed-by: iustinp
-
- 10 Nov, 2008 1 commit
-
-
Michael Hanselmann authored
While working on the HTTP client class, I wanted to use Mainloop before deciding to use threads instead. - Add docstrings - Rename "quit" to "running", move it to a local variable - Support adding and removing I/O listeners while running (e.g. to add/remove listeners from OnIO(…) calls) - Allow user of the class to disable signal handlers - Flag to exit once all listeners are gone Reviewed-by: iustinp
-
- 23 Oct, 2008 1 commit
-
-
Michael Hanselmann authored
We don't have timers yet, hence waking up is not needed at all. Reviewed-by: ultrotter
-
- 17 Oct, 2008 2 commits
-
-
Guido Trotter authored
This fixes removals of the pid files and clean exit in the init script Reviewed-by: iustinp
-
Guido Trotter authored
There is no point in initializing sigchld_handler as an empty dict, when it will be overwritten by an instance of utils.SignalHandler immediately after. Reviewed-by: iustinp
-
- 10 Oct, 2008 1 commit
-
-
Michael Hanselmann authored
This mainloop can be used in daemons like ganeti-noded. Reviewed-by: iustinp
-