Show More
@@ -2818,11 +2818,16 b' def debugwireproto(ui, repo, **opts):' | |||||
2818 | elif action == 'close': |
|
2818 | elif action == 'close': | |
2819 | peer.close() |
|
2819 | peer.close() | |
2820 | elif action == 'readavailable': |
|
2820 | elif action == 'readavailable': | |
2821 |
fds = |
|
2821 | fds = [stdout.fileno(), stderr.fileno()] | |
2822 |
|
2822 | try: | ||
2823 |
|
|
2823 | act = util.poll(fds) | |
|
2824 | except NotImplementedError: | |||
|
2825 | # non supported yet case, assume all have data. | |||
|
2826 | act = fds | |||
|
2827 | ||||
|
2828 | if stdout.fileno() in act: | |||
2824 | util.readpipe(stdout) |
|
2829 | util.readpipe(stdout) | |
2825 |
if stderr.fileno() in |
|
2830 | if stderr.fileno() in act: | |
2826 | util.readpipe(stderr) |
|
2831 | util.readpipe(stderr) | |
2827 | elif action == 'readline': |
|
2832 | elif action == 'readline': | |
2828 | stdout.readline() |
|
2833 | stdout.readline() |
General Comments 0
You need to be logged in to leave comments.
Login now