mirror of
https://github.com/safing/portmaster
synced 2025-04-20 10:59:10 +00:00
21 lines
655 B
Go
21 lines
655 B
Go
package process
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// SystemProcessID is the PID of the System/Kernel itself.
|
|
const SystemProcessID = 4
|
|
|
|
// GetProcessGroupLeader returns the process that leads the process group.
|
|
// Returns nil on Windows, as it does not have process groups.
|
|
func (p *Process) FindProcessGroupLeader(ctx context.Context) error {
|
|
// TODO: Get "main" process of process job object.
|
|
return nil
|
|
}
|
|
|
|
// GetProcessGroupID returns the process group ID of the given PID.
|
|
// Returns the undefined process ID on Windows, as it does not have process groups.
|
|
func GetProcessGroupID(ctx context.Context, pid int) (int, error) {
|
|
return UndefinedProcessID, nil
|
|
}
|