do not use exec to execute the child process but do it after fork directly.