summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/SubProcess.py
Commit message (Collapse)AuthorAgeFilesLines
* PollScheduler: remove register/unregister methodsZac Medico2012-10-051-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.
* SubProcess._waitpid_cb: fix args for glib compatZac Medico2012-02-171-1/+1
|
* SubProcess: use child_watch_addZac Medico2012-02-161-29/+7
| | | | | This fixes performance issues introduced by commit 9c664779a16f6cbca8a5ffe7f6b0c68572819723.
* SubProcess: use non-blocking waitpidZac Medico2012-02-151-12/+27
| | | | | This ensures that the EventLoop will not stop due to a waitpid call blocking forever.
* SubProcess._wait: add debug code for bug #403697Zac Medico2012-02-141-0/+6
|
* AbstractPollTask: add _wait_loop methodZac Medico2012-02-071-5/+3
|
* Use PollScheduler iteration method.Zac Medico2012-02-071-2/+3
|
* Use timeout_add to avoid recursion, bug #402335.Zac Medico2012-02-071-1/+5
|
* _emerge/SubProcess.py: support int fd in _filesZac Medico2011-12-011-1/+4
|
* SubProcess: fix status for _set_returncode callerZac Medico2011-06-091-2/+2
| | | | | | These callers don't intend to make WIFSIGNALED return True, so they need to shift their codes 8 bits to the left. This ensures that commit 88f5bf84e2fd23125910b2ecaffc035971445696 behaves as intended.
* SubProcess: make returncode like PopenZac Medico2011-06-091-6/+10
|
* AsynchronousTask: add _cancel template methodZac Medico2011-03-161-3/+1
|
* AsynchronousTask: always call wait() if cancelledZac Medico2011-03-161-5/+1
| | | | | | This is needed in order to ensure that exit listeners are called. Subclasses call the base class cancel() method in order to inherit the wait() call.
* Update date headers in modified files.Zac Medico2011-02-211-1/+1
|
* SubProcess: notify exit listeners in _pollZac Medico2011-02-201-0/+1
|
* With waitpid and WNOHANG, only check the first element of the tuplev2.2_rc85Zac Medico2010-09-191-2/+8
| | | | since the second element may vary (bug #337465, comment #12).
* Remove PollScheduler._schedule_waitpid() since this case isn't triggeredZac Medico2010-08-151-1/+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).
* Add a PollScheduler._schedule_waitpid() method for SubProcess._wait()Zac Medico2010-08-141-2/+13
| | | | | to use as an alternative to hanging up the scheduler in a blocking waitpid call.
* Rename SubProcess._zombie() to _orphan_process_warn() and clarifyZac Medico2010-08-131-2/+2
| | | | the eerror message.
* Bug #278895 - After EbuildIpcDaemon identifies an ebuild process thatZac Medico2010-08-131-1/+18
| | | | | has left an orphan child process running in the background, generate an eerror message about a 'zombie' process and note the pid.
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-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 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-3/+3
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-1/+2
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13994
* 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. Thanks toZac Medico2009-06-221-0/+104
Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13663