diff options
author | Mark Salyzyn <salyzyn@google.com> | 2017-02-17 13:15:51 -0800 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2017-02-22 15:10:56 -0800 |
commit | e3d0c968ac4bf6de2a0cacfb956ee5d8df8e7583 (patch) | |
tree | 6b26a1222f9f0591765111c0fa1bfb36c95574ea /lmkd/lmkd.c | |
parent | 3e3aaca4c3f48a36d3725441d9d487d7aa0e7209 (diff) | |
download | core-e3d0c968ac4bf6de2a0cacfb956ee5d8df8e7583.tar.gz core-e3d0c968ac4bf6de2a0cacfb956ee5d8df8e7583.tar.bz2 core-e3d0c968ac4bf6de2a0cacfb956ee5d8df8e7583.zip |
liblogcat: add simple stdout redirection
Provide minimal redirection functionality, adding stdout redirection
to the existing stderr redirection parsing.
- stderr and stdout redirection do _not_ support append, will treat
like write only.
- stderr redirection does _not_ support filename. Only 2>&1 to
join stderr and stdout and 2>/dev/null to drop content on floor.
- stdout redirection supports filename only.
- stderr 2>&1 redirection must be last for shell compatibility.
- preserve 2>&1 through file rotation (bugfix)
Test: logcat-benchmarks --benchmark_filter='BM_logcat_popen*|BM_logcat_system*'
Bug: 35326290
Change-Id: Id36b59358167f21381bd1dbf0bd7a7e10e2a2ed9
Diffstat (limited to 'lmkd/lmkd.c')
0 files changed, 0 insertions, 0 deletions