Improve process creation and cleaning

This commit is contained in:
Daniel
2019-05-06 10:51:19 +02:00
parent 0fd44c8011
commit 4f275a8029
6 changed files with 88 additions and 17 deletions

View File

@@ -9,8 +9,18 @@ var (
ParentPid: -1,
Name: "Unknown Processes",
}
// OSProcess is used to represent the Kernel.
OSProcess = &Process{
UserID: 0,
UserName: "Kernel",
Pid: 0,
ParentPid: 0,
Name: "Operating System",
}
)
func init() {
UnknownProcess.Save()
OSProcess.Save()
}