获取进程号并赋值判断进程状态