Add support for auto attach to child processes.