TBR: gosh: fix buffered_pipe's WriteTo implementation

The initial implementation failed to wait for all but the first write to
the pipe -- as soon as a Write happened, WriteTo would return.  Instead,
WriteTo ought to wait for the pipe to be Closed, and write the data from
all the Writes to the pipe that happen up until the Close.

Change-Id: I1e09261084217df5e1fd82c4309ad479bbb423f6
2 files changed
tree: 15e9cba01222d901c8195eab588be2c46b3f740d
  1. cmd/
  2. cmdline/
  3. dbutil/
  4. envvar/
  5. gosh/
  6. host/
  7. ibe/
  8. metadata/
  9. netconfig/
  10. netstate/
  11. set/
  12. simplemr/
  13. textutil/
  14. timing/
  15. toposort/
  16. vlog/
  17. .gitignore
  18. .godepcop
  19. AUTHORS
  20. CONTRIBUTING.md
  21. CONTRIBUTORS
  22. LICENSE
  23. PATENTS
  24. README.md
  25. VERSION
README.md

This repository contains general purpose libraries used by the Vanadium project. TEST