#include #include #include #include "proc.h" #include "fs.h" int process_exists(pid_t pid) { char path[PATH_MAX]; snprintf(path, PATH_MAX, "/proc/%li", pid); return isDir(path); }