summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/PollScheduler.py
Commit message (Collapse)AuthorAgeFilesLines
* Add sanity checks for system clock changes.Zac Medico2010-10-231-1/+7
|
* Fix parallel-fetch output by BinpkgVerifier.Zac Medico2010-10-141-2/+8
| | | | | BinpkgVerifier was erroneusly sending parallel-fetch output to stdout. Thanks to Jeremy Olexa <darkside@g.o> for reporting.
* Add a 'condition' keyword argument to PollScheduler._schedule_wait()Zac Medico2010-09-131-1/+3
| | | | | which is a callable that should return True when it is desirable for the _schedule_wait() method to return.
* Add support for a timeout argument to QueueScheduler.run() andZac Medico2010-09-031-5/+11
| | | | | use it in IpcDaemonTestCase to implement a 40 second timeout in test cases.
* Remove unused imports found by pylint.Arfrever Frehtes Taifersar Arahesis2010-08-291-1/+0
|
* Bug #324191 - Add support for FEATURES=compress-build-logs. The causesZac Medico2010-08-211-2/+36
| | | | | | | all build logs to be compressed while they are being written. Log file names have an extension that is appropriate for the compression type. Currently, only gzip(1) compression is supported, so build logs will have a '.gz' extension when this feature is enabled.
* Remove PollScheduler._schedule_waitpid() since this case isn't triggeredZac Medico2010-08-151-28/+1
| | | | | | anymore, now that PollScheduler._unregister() has be fixed to discard unhandled events (so that reallocation of file descriptors no longer triggers erroneous delivery of stale events).
* Don't handle KeyError when looking up event handlers, sinceZac Medico2010-08-151-31/+12
| | | | _unregister() automatically discards stale events now.
* Fix PollScheduler._unregister() to discard any unhandled eventsZac Medico2010-08-151-0/+13
| | | | | | | | | that belong to the unregistered file, in order to prevent these events from being erroneously delivered to a future handler that is using a reallocated file descriptor of the same numeric value (causing extremely confusing bugs). Note that this is was the cause of the intermittent bug that forced me to disable EbuildIpcDaemon by default.
* Fix _schedule spelling in _schedule_waitpid().Zac Medico2010-08-141-1/+1
|
* Add a PollScheduler._schedule_waitpid() method for SubProcess._wait()Zac Medico2010-08-141-1/+32
| | | | | to use as an alternative to hanging up the scheduler in a blocking waitpid call.
* Handle KeyError due to stale events.Zac Medico2010-08-131-6/+14
|
* * Fix IndexError in PollScheduler._next_poll_event() by raisingZac Medico2010-08-131-2/+11
| | | | | | StopIteration instead. * Add an optional timeout parameter to PollScheduler._schedule_wait() (this will be used in a later commit).
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-1/+1
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Bug #282808 - Handle a potential KeyError inside PollScheduler._poll_loop()Zac Medico2009-09-051-1/+8
| | | | | | | when _poll_event_queue contains an event for a file descriptor that has already been unregistered. svn path=/main/trunk/; revision=14185
* Add/update copyright headers.Zac Medico2009-06-251-0/+4
| | | | svn path=/main/trunk/; revision=13690
* Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 3).Zac Medico2009-06-221-0/+251
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13668