projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b73b10
)
Add back the POLLHUP handling for now since PipeReaderTestCase breaks
author
Zac Medico
<zmedico@gentoo.org>
Sat, 14 Aug 2010 04:53:39 +0000
(21:53 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 14 Aug 2010 04:53:39 +0000
(21:53 -0700)
without it.
pym/_emerge/AbstractPollTask.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/AbstractPollTask.py
b/pym/_emerge/AbstractPollTask.py
index b654a615fb252c89ae71bde170ec40004d3de4da..1feee15f63083110e6d084ecf75e0171b12c317e 100644
(file)
--- a/
pym/_emerge/AbstractPollTask.py
+++ b/
pym/_emerge/AbstractPollTask.py
@@
-10,7
+10,7
@@
class AbstractPollTask(AsynchronousTask):
_bufsize = 4096
_exceptional_events = PollConstants.POLLERR | PollConstants.POLLNVAL
- _registered_events = PollConstants.POLLIN | \
+ _registered_events = PollConstants.POLLIN |
PollConstants.POLLHUP |
\
_exceptional_events
def _unregister(self):
@@
-21,3
+21,7
@@
class AbstractPollTask(AsynchronousTask):
if event & self._exceptional_events:
self._unregister()
self.cancel()
+ elif event & PollConstants.POLLHUP:
+ self._unregister()
+ self.wait()
+