childpid is not behaving