🌈 搜索
📅  最后修改于: 2022-03-11 15:04:34.084000             🧑  作者: Mango
#include [...] struct stat sts; if (stat("/proc/", &sts) == -1 && errno == ENOENT) { // process doesn't exist }