Code for communicating between forked processes.