wip: migrate to mono-repo. SPN has already been moved to spn/
This commit is contained in:
23
service/process/process_default.go
Normal file
23
service/process/process_default.go
Normal file
@@ -0,0 +1,23 @@
|
||||
//go:build !windows && !linux
|
||||
// +build !windows,!linux
|
||||
|
||||
package process
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
// SystemProcessID is the PID of the System/Kernel itself.
|
||||
const SystemProcessID = 0
|
||||
|
||||
// GetProcessGroupLeader returns the process that leads the process group.
|
||||
// Returns nil on unsupported platforms.
|
||||
func (p *Process) FindProcessGroupLeader(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetProcessGroupID returns the process group ID of the given PID.
|
||||
// Returns undefined process ID on unsupported platforms.
|
||||
func GetProcessGroupID(ctx context.Context, pid int) (int, error) {
|
||||
return UndefinedProcessID, nil
|
||||
}
|
||||
Reference in New Issue
Block a user