lib: gosh: "fix" the wait-signal race

Adjusts the gosh.Cmd API to deal with the race:
- Adds Cmd.{Signal,Kill} methods that handle the race
- Replaces Cmd.Process with Cmd.Pid, since clients should
  not do anything else with the Process handle

The race-handling logic hardcodes a particular internal
error message of the os package ("os: process already
finished"), which is brittle but seems more or less
unavoidable.

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

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