veyron/security/agent/server: Improve agent shutdown.
Make sure NotifyWhenChanged shuts down when the agent's context is cancelled.
Also exit read loops when the agent's context is cancelled.

Change-Id: I19197ef7d7d6d4c1f07d26c31f63e3b8e9216608
3 files changed
tree: 026fe0417821b5980fc164080e16d4e48fb5ed22
  1. lib/
  2. profiles/
  3. runtimes/
  4. security/
  5. services/
  6. tools/