refine waitpid

	when waitpid put it into wait queue