Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Issue 8374026: Add callback support for stdout and stderr. (Closed)

Created:
9 years, 2 months ago by M-A Ruel
Modified:
9 years, 1 month ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews
Visibility:
Public.

Description

Add callback support for stdout and stderr. It's currently an inefficient thread implementation. Interestingly enough, callback support is significantly faster on cygwin than on native python. Writing an efficient implementation is punted for a later change, one per implementation. Stops using a temporary file since it's not necessary anymore. The goal is to reduce the number of places where a similar paradigm is used by having a canonical generic implementation. R=dpranke@chromium.org BUG= TEST=Tested manually on Windows, cygwin, linux, OSX 10.6 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109239

Patch Set 1 : Fix on all platforms #

Patch Set 2 : Explain why Queue is not sized #

Patch Set 3 : Cleanup test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -34 lines) Patch
M subprocess2.py View 1 5 chunks +169 lines, -25 lines 2 comments Download
M tests/subprocess2_test.py View 1 2 7 chunks +101 lines, -9 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
M-A Ruel
This CL took me a while to implement but this will permit me to remove ...
9 years, 1 month ago (2011-11-03 13:13:40 UTC) #1
Dirk Pranke
I'm not sure I understand what you're attempting to do here. What is the problem ...
9 years, 1 month ago (2011-11-04 01:15:11 UTC) #2
M-A Ruel
On 2011/11/04 01:15:11, Dirk Pranke wrote: > I'm not sure I understand what you're attempting ...
9 years, 1 month ago (2011-11-04 01:41:48 UTC) #3
Dirk Pranke
Okay, I follow what you're doing a bit better here. I missed that you were ...
9 years, 1 month ago (2011-11-04 01:58:10 UTC) #4
M-A Ruel
On 2011/11/04 01:58:10, Dirk Pranke wrote: > Okay, I follow what you're doing a bit ...
9 years, 1 month ago (2011-11-04 12:32:37 UTC) #5
M-A Ruel
Ping. I've implemented the posix accelerated version. The windows version is a bit harder to ...
9 years, 1 month ago (2011-11-08 19:18:06 UTC) #6
Dirk Pranke
Sorry for the delay; this review is non-trivial and I've been distracted by other things ...
9 years, 1 month ago (2011-11-08 20:14:11 UTC) #7
M-A Ruel
On 2011/11/08 20:14:11, Dirk Pranke wrote: > Sorry for the delay; this review is non-trivial ...
9 years, 1 month ago (2011-11-08 20:15:40 UTC) #8
Dirk Pranke
lgtm
9 years, 1 month ago (2011-11-09 03:43:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/8374026/8001
9 years, 1 month ago (2011-11-09 13:52:12 UTC) #10
commit-bot: I haz the power
9 years, 1 month ago (2011-11-09 13:57:59 UTC) #11
Change committed as 109239

Powered by Google App Engine
This is Rietveld 408576698