Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SpawnProcess: stdout_fd FD_CLOEXEC | Zac Medico | 2013-01-07 | 1 | -0/+15 |
| | |||||
* | SpawnProcess: support close_fds | Zac Medico | 2013-01-03 | 1 | -2/+2 |
| | |||||
* | AsynchronousTask: add _async_wait method | Zac Medico | 2012-12-30 | 1 | -1/+1 |
| | | | | | | | | For cases where _start returns synchronously, this method is a convenient way to trigger an asynchronous call to self.wait() (in order to notify exit listeners), avoiding excessive event loop recursion (or stack overflow) that synchronous calling of exit listeners can cause. | ||||
* | Handle closed sys.__stdin__, for multiprocessing | Zac Medico | 2012-12-15 | 1 | -1/+1 |
| | | | | | | | Buggy code in python's multiprocessing/process.py closes sys.stdin and reassigns it to open(os.devnull), but fails to update the corresponding __stdin__ reference. So, detect that case and handle it appropriately. The buggy code is visible in http://hg.python.org/lookup/r73708. | ||||
* | SpawnProcess: split out a PipeLogger class | Zac Medico | 2012-10-18 | 1 | -131/+34 |
| | | | | | | The copyright dates for these classes begin in 2008, since SpawnProcess code is derived from the EbuildFetcherAsync class which was added in commit e4edadf5ae7063f375d76be151c6d0e949980ecf in 2008. | ||||
* | PollScheduler: remove register/unregister methods | Zac Medico | 2012-10-05 | 1 | -1/+1 |
| | | | | | | | These methods were aliases for the EventLoop io_add_watch and source_remove methods. Migrating to the EventLoop method names allows an EventLoop instance to substitute for a PollScheduler inside subclasses of AbstractPollTask. | ||||
* | Optimize sys.std* flush code.v2.2.0_alpha122 | Zac Medico | 2012-08-22 | 1 | -2/+3 |
| | |||||
* | Use sys.__std*.fileno() in case of overrides. | Zac Medico | 2012-08-22 | 1 | -8/+8 |
| | | | | | This fixes AttributeError exceptions for API consumers that override sys.std* streams pseudo-file objects. | ||||
* | SpawnProcess: use os.open for /dev/null input | Zac Medico | 2012-02-15 | 1 | -3/+3 |
| | |||||
* | SpawnProcess: for stdout use os.write, not fdopen | Zac Medico | 2012-02-14 | 1 | -6/+5 |
| | |||||
* | AsynchronousTask: skip cancelled check in _start | Zac Medico | 2012-02-14 | 1 | -3/+0 |
| | | | | | These checks should be irrelevant, since the cancel() method is never called on anything that hasn't been started already. | ||||
* | PollScheduler: glib.io_add_watch() compatibility | Zac Medico | 2012-02-07 | 1 | -0/+4 |
| | |||||
* | SpawnProcess/AbstractPollTask: eliminate array | Zac Medico | 2011-12-16 | 1 | -11/+2 |
| | | | | | Since commit 30d2d0a9db486c5a70848ad5d27b37a3ec48f271, we use os.read() due to bugs in array.fromfile(). So, eliminate array usage entirely. | ||||
* | SpawnProcess: remove obsolete fdopen | Zac Medico | 2011-12-16 | 1 | -4/+2 |
| | | | | | Since commit 30d2d0a9db486c5a70848ad5d27b37a3ec48f271, we use os.read() due to bugs in array.fromfile(), so there's no need to use fdopen. | ||||
* | SpawnProcess: work around array.fromfile() bugs | Zac Medico | 2011-12-15 | 1 | -11/+20 |
| | | | | | | When I extended test_poll to test SpawnProcess array.fromfile() usage, it exposed bugs in array.fromfile() that I couldn't find a way to handle. So, use os.read() instead. | ||||
* | SpawnProcess: use /dev/null fd from subclass | Zac Medico | 2011-12-13 | 1 | -14/+17 |
| | |||||
* | python3.2 fixes: ResourceWarning: unclosed file | Zac Medico | 2011-08-25 | 1 | -1/+8 |
| | |||||
* | Add some comments, which will allow to easier find code, which should be | Arfrever Frehtes Taifersar Arahesis | 2011-08-25 | 1 | -0/+1 |
| | | | | removed when support for older versions of Python is removed. | ||||
* | python3.2 fixes: use array.tobytes() | Zac Medico | 2011-08-24 | 1 | -1/+5 |
| | |||||
* | BinpkgFetcher: support selinux PORTAGE_FETCH_T | Zac Medico | 2011-07-21 | 1 | -2/+12 |
| | | | | | Thanks to Sven Vermeulen <sven.vermeulen@siphos.be> for the initial patch posted on bug #375835. | ||||
* | SpawnProcess: read proc with unbuffered fdopen | Zac Medico | 2011-01-20 | 1 | -2/+4 |
| | | | | | This enables pty support in python3, by using unbuffered fdopen to avoid http://bugs.python.org/issue5380. | ||||
* | Split out a AbstractPollTask._read_buf() helper method. | Zac Medico | 2010-09-09 | 1 | -16/+6 |
| | |||||
* | Bug #324191 - Add support for FEATURES=compress-build-logs. The causes | Zac Medico | 2010-08-21 | 1 | -2/+14 |
| | | | | | | | 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. | ||||
* | Fix SubProcess instances to call _set_returncode() when appropriate, | Zac Medico | 2010-08-15 | 1 | -1/+1 |
| | | | | instead of setting self.returncode directly. | ||||
* | Remove unuser return values from PollScheduler event handlers. | Zac Medico | 2010-08-15 | 1 | -2/+0 |
| | |||||
* | EOFError can still be raised by array.fromfile() in Python >=2.6.6 and >=2.7.1. | Arfrever Frehtes Taifersar Arahesis | 2010-08-05 | 1 | -2/+0 |
| | |||||
* | Bug #330937: Handle IOError raised by remaining calls to array.fromfile(). | Arfrever Frehtes Taifersar Arahesis | 2010-08-05 | 1 | -1/+2 |
| | |||||
* | Bug #330937: Handle IOError raised by array.fromfile(). | Arfrever Frehtes Taifersar Arahesis | 2010-08-03 | 1 | -1/+2 |
| | |||||
* | Remove all svn $Id keywords. | Zac Medico | 2010-03-24 | 1 | -1/+0 |
| | |||||
* | Bug #162404 - Automatically disable logging if sesandbox is enabled and a | Zac Medico | 2009-12-05 | 1 | -1/+7 |
| | | | | | | | pty is not available for some reason (currently they are never available with python3). svn path=/main/trunk/; revision=14928 | ||||
* | Use dict.(keys|values|items)() instead of ↵ | Arfrever Frehtes Taifersar Arahesis | 2009-09-21 | 1 | -1/+1 |
| | | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327 | ||||
* | Update syntax of numbers for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -1/+1 |
| | | | | | | (2to3-3.1 -f numliterals -nw ${FILES}) svn path=/main/trunk/; revision=14292 | ||||
* | Update syntax of 'except' statements for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -1/+1 |
| | | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289 | ||||
* | Update imports to import portage.os (with unicode wrappers), and use | Zac Medico | 2009-08-11 | 1 | -8/+3 |
| | | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13994 | ||||
* | Add/update copyright headers. | Zac Medico | 2009-06-25 | 1 | -0/+4 |
| | | | | svn path=/main/trunk/; revision=13690 | ||||
* | Bug #275047 - Split _emerge/__init__.py into smaller pieces. Thanks to | Zac Medico | 2009-06-22 | 1 | -0/+219 |
Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13663 |