Offset pid_set by 1

PID starts at 1, not 0
This commit is contained in:
topjohnwu
2020-11-08 02:12:35 -08:00
parent ade1597e03
commit b14a260827
2 changed files with 10 additions and 2 deletions

View File

@@ -289,5 +289,4 @@ void test_proc_monitor() {
if (procfp == nullptr && (procfp = opendir("/proc")) == nullptr)
exit(1);
proc_monitor();
exit(0);
}