diff options
author | 2021-06-14 13:24:19 -0700 | |
---|---|---|
committer | 2021-06-17 15:16:50 -0700 | |
commit | af766e6162d9e9b648f87e466f5ddbcb9387759e (patch) | |
tree | c1fe7bddfc78c2c3a23539ca21ff80c1f1cf4c84 /libs/binder/RpcState.cpp | |
parent | 9ffa66eb62254796b127533ec60fb7942428adf7 (diff) |
binder: Add execute() to host utils.
Add utility for executing commands.
This function assumes that, when a given predicate
|end| finishes, the child process does not emit any other
messages.
If this is not the case, caller to execute()
must handle these I/O in the pipes in the returned
CommandResult object. Otherwise the child program may
hang on I/O.
Test: binderUtilsTest
Bug: 190233850
Change-Id: Ib8be5db140af04a286ccbb2283cb032390aff5ac
Diffstat (limited to 'libs/binder/RpcState.cpp')
0 files changed, 0 insertions, 0 deletions