fix exit
finish waitpid
change menu wakeup method