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
tree: fc41c51cf66cfe4e5281ff0c49f47783ad9b90c0
  1. include/
  2. src/
  3. Android.mk
  4. common.mk
  5. CPPLINT.cfg
  6. LICENSE
  7. Makefile
  8. README.txt