aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* EbuildIpcDaemon: use non-blocking writeZac Medico2011-03-171-5/+24
| | | | | | | | | | | This prevents the Scheduler from hanging if the client is killed before we can send the reply, as reported by David James: http://codereview.chromium.org/6713003 This commit depends on ebuild-ipc (the client) opening the other side of this fifo before it sends its request, which has already been added in commit eff879ff0ce7dcc1ce68d5f16de1ec73051f8c18.
* Add FifoIpcDaemon._reopen_input() method.Zac Medico2010-10-061-9/+1
|
* Bug #339976 - Suppress fifo POLLHUP events.Zac Medico2010-10-061-0/+11
|
* Make EbuildIpcDaemon._input_handler() handle EAGAIN from os.read()Zac Medico2010-09-231-1/+7
| | | | for FreeBSD (bug 337465, comment #35).
* Bug #337465 - Make EbuildIpcDaemon._input_handler() use os.read()Zac Medico2010-09-231-3/+11
| | | | | since array.fromfile() and file.read() are both known to erroneously return an empty string from this non-blocking fifo stream on FreeBSD.
* Remove obsolete comment about non-blocking fromZac Medico2010-09-201-4/+0
| | | | EbuildIpcDaemon._send_reply() since ebuild-ipc now uses blocking IO.
* Use blocking IO in ebuild-ipc.py and EbuildIpcDaemon._send_reply(),Zac Medico2010-09-181-6/+1
| | | | in hopes that it will be more portable (see bug #337465).
* Make EbuildIpcDaemon._input_handler() use a blanket exceptionZac Medico2010-09-171-2/+5
| | | | | handler for pickle.loads() since that can raise practically any exception when given corrupt data.
* Bug #336644 - Make EbuildIpcDaemon use AbstractPollTask._read_buf(),Zac Medico2010-09-091-17/+4
| | | | | for better handling of errors like "IOError: [Errno 11] Resource temporarily unavailable". TODO: Apply a similar fix to ebuild-ipc.py.
* Adjust EbuildIpcDaemon pickle read and write code in order to ensureZac Medico2010-09-021-3/+26
| | | | | atomc reading and writing of whole pickles. This should be the least error-prone approach, given the non-blocking nature of the streams.
* Remove unuser return values from PollScheduler event handlers.Zac Medico2010-08-151-2/+0
|
* Add the "unexpected bash exit" case to the docstring.Zac Medico2010-08-151-1/+3
|
* Bug #315615 - Use EbuildIpcDaemon to implement has_version and best_version.Zac Medico2010-08-131-1/+0
| | | | | This provides performance benefits and also avoids permissions issues with FEATURES=userpriv.
* Call pickle.load() directly on the input pipe, and handle exceptions.Zac Medico2010-08-121-7/+4
|
* Refactor interaction between EbuildIpcDaemon and ExitCommand.Zac Medico2010-08-121-1/+21
|
* Make IpcDaemonTestCase demonstrate an EbuildIpcDaemon basedZac Medico2010-08-121-10/+10
| | | | replacement for EBUILD_EXIT_STATUS_FILE.
* Split out an EbuildIpcDaemon class from FifoIpcDaemon.Zac Medico2010-08-121-0/+52