Preparing to move sigchild logic out of terminal.