moby--moby/daemon/networkdriver/portmapper
Daniel, Dao Quang Minh 3b9d88210e pass extra file to child process as status handler
When stdout/stderr is closed prematurely, the proxy's writes to stdout/stderr
(i.e. `log.Errorf/log.Printf`) will returns with EPIPE error, and go runtime
will terminate the proxy when stdout/stderr writes trigger 10 EPIPE errors.

instead of using stdout/stderr as the status handler, we pass an extra file to
the child process and write `0\n` or `1\nerror message` to it and close it
after. This allow the child process to handle stdout/stderr as normal.

Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com> (github: dqminh)
2014-10-08 12:53:43 -04:00
..
mapper.go Fix my own comments from #7927 2014-09-12 10:05:07 +04:00
mapper_test.go Move userland proxies out of daemon's process 2014-08-13 11:54:47 -07:00
mock_proxy.go Move userland proxies out of daemon's process 2014-08-13 11:54:47 -07:00
proxy.go pass extra file to child process as status handler 2014-10-08 12:53:43 -04:00