nbd-proxy: use CLOEXEC

We spawn a couple of subprocesses, and want to make sure we don't leak
file descriptors to those. Rather than closing before exec, set CLOEXEC
on sockets and internal pipes.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
1 file changed