use CHILD_PROCESS_INIT to initialize automatic variables