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

Issue 67226: Add GetAppOutput function, a better replacement for popen. (Closed)

Created:
11 years, 8 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add GetAppOutput function, a better replacement for popen. It will replace popen call in chrome_process_util_linux. I don't see much benefit in having a Windows implementation (not many useful programs you can launch and get output), so POSIX-only. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13920

Patch Set 1 #

Total comments: 5

Patch Set 2 : fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -0 lines) Patch
M base/process_util.h View 1 chunk +8 lines, -0 lines 0 comments Download
M base/process_util_posix.cc View 1 1 chunk +68 lines, -0 lines 1 comment Download
M base/process_util_unittest.cc View 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Paweł Hajdan Jr.
11 years, 8 months ago (2009-04-16 18:06:15 UTC) #1
agl
http://codereview.chromium.org/67226/diff/1/3 File base/process_util_posix.cc (right): http://codereview.chromium.org/67226/diff/1/3#newcode336 Line 336: close(pipe_fd[0]); You need to be a little careful ...
11 years, 8 months ago (2009-04-16 18:21:56 UTC) #2
Paweł Hajdan Jr.
On 2009/04/16 18:21:56, agl wrote: > http://codereview.chromium.org/67226/diff/1/3 > File base/process_util_posix.cc (right): > > http://codereview.chromium.org/67226/diff/1/3#newcode336 > ...
11 years, 8 months ago (2009-04-16 19:18:03 UTC) #3
agl
LGTM
11 years, 8 months ago (2009-04-16 19:20:21 UTC) #4
Scott Hess - ex-Googler
11 years, 8 months ago (2009-04-16 21:20:25 UTC) #5
Drive-by comment...

http://codereview.chromium.org/67226/diff/1002/10
File base/process_util_posix.cc (right):

http://codereview.chromium.org/67226/diff/1002/10#newcode376
Line 376: output->assign(buf_output);
Since process output is sort of open-ended, would swap() make more sense than
assign()?

Powered by Google App Engine
This is Rietveld 408576698