consul/agent/proxy
Paul Banks 2b377dc624 Run daemon processes as a detached child.
This turns out to have a lot more subtelty than we accounted for. The test suite is especially prone to races now we can only poll the child and many extra levels of indirectoin are needed to correctly run daemon process without it becoming a Zombie.

I ran this test suite in a loop with parallel enabled to verify for races (-race doesn't find any as they are logical inter-process ones not actual data races). I made it through ~50 runs before hitting an error due to timing which is much better than before. I want to go back and see if we can do better though. Just getting this up.
2018-06-25 12:24:08 -07:00
..
daemon.go Run daemon processes as a detached child. 2018-06-25 12:24:08 -07:00
daemon_test.go Run daemon processes as a detached child. 2018-06-25 12:24:08 -07:00
exitstatus_other.go agent/proxy: pull exit status extraction to constrained file 2018-06-14 09:42:09 -07:00
exitstatus_syscall.go agent/proxy: pull exit status extraction to constrained file 2018-06-14 09:42:09 -07:00
manager.go Run daemon processes as a detached child. 2018-06-25 12:24:08 -07:00
manager_test.go Run daemon processes as a detached child. 2018-06-25 12:24:08 -07:00
noop.go agent/proxy: implement snapshotting for daemons 2018-06-14 09:42:11 -07:00
noop_test.go agent: start/stop proxies 2018-06-14 09:42:08 -07:00
process.go Run daemon processes as a detached child. 2018-06-25 12:24:08 -07:00
process_test.go Run daemon processes as a detached child. 2018-06-25 12:24:08 -07:00
process_unix.go agent/proxy: address PR feedback 2018-06-14 09:42:12 -07:00
process_windows.go Run daemon processes as a detached child. 2018-06-25 12:24:08 -07:00
proxy.go agent/proxy: pass proxy ID as an env var 2018-06-14 09:42:13 -07:00
proxy_test.go Run daemon processes as a detached child. 2018-06-25 12:24:08 -07:00
snapshot.go agent/proxy: check if process is alive in addition to Wait 2018-06-14 09:42:12 -07:00
test.go agent/proxy: manager and basic tests, not great coverage yet coming soon 2018-06-14 09:42:08 -07:00