finish  the implementation for the fork
Change the ret addr to the main exit