Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pid numeration fix
  • Loading branch information
djphoenix committed May 26, 2019
1 parent 3695cd7 commit 77780aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process/processmanager.cpp
Expand Up @@ -108,7 +108,7 @@ uint64_t ProcessManager::RegisterProcess(Process *process) {
Mutex::CriticalLock lock(processSwitchMutex);
uint64_t pid = 1;
for (size_t i = 0; i < processes.getCount(); i++) {
pid = klib::max(pid, processes[i]->getId());
pid = klib::max(pid, processes[i]->getId() + 1);
}
processes.add(process);
return pid;
Expand Down

0 comments on commit 77780aa

Please sign in to comment.