I want to know the status of a process. I think I can use the wait family functions but actually I don't want to wait for the process, just check the status and go on.
I would want something like
checkStatusOfProcess(&status);
if(status == WORKING) {
//do something
} else if(status == exited) {
//do something else
} else \\I dont care about other states
以上就是Just check status process in c的详细内容,更多请关注web前端其它相关文章!