docker/daemon/networkdriver
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
..
bridge Support for consistent MAC address. 2014-10-03 13:22:38 -07:00
ipallocator IPAllocator: Ensure the allocated IPs are within network range. 2014-09-24 11:04:28 -07:00
portallocator
portmapper pass extra file to child process as status handler 2014-10-08 12:53:43 -04:00
network.go
network_test.go
utils.go