Just realized my do_waitpid is not wrong on this issue