audiofuntest: close pipe in parent process
audiofuntest shares pipes/FIFOs with child processes aplay and arecord.
When child process ends, the pipe is still opened by parent process and
causes corrsponding read()/write() in parent blocks forever.
Close the fds after fork to prevent this problem.
Also fixed a nit in help message.
BUG=None
TEST=Run audiofuntest with another aplay process in background to
make audiofuntest fail, make sure audiofuntest is stopped.
Change-Id: I67e4d0040ed5ac1239e40d87dae7920101a710e6
Reviewed-on: https://chromium-review.googlesource.com/425497
Commit-Ready: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Shun-Hsing Ou <shunhsingou@chromium.org>
2 files changed