Start slave processes and read from them.
Get fully qualified hostname. Set close-on-exec flag on all sockets.