fix get parent process api
remove debug assert