mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
26 lines
460 B
Go
26 lines
460 B
Go
package process
|
|
|
|
var (
|
|
// UnknownProcess is used when a process cannot be found.
|
|
UnknownProcess = &Process{
|
|
UserID: -1,
|
|
UserName: "Unknown",
|
|
Pid: -1,
|
|
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()
|
|
}
|