diff --git a/drivers/shared/executor/executor_unix.go b/drivers/shared/executor/executor_unix.go index 6f90b7ade..2506a49e0 100644 --- a/drivers/shared/executor/executor_unix.go +++ b/drivers/shared/executor/executor_unix.go @@ -43,3 +43,7 @@ func (e *UniversalExecutor) shutdownProcess(sig os.Signal, proc *os.Process) err return nil } + +func (e *UniversalExecutor) getAllPids() (map[int]*nomadPid, error) { + return getAllPidsByScanning() +} diff --git a/drivers/shared/executor/executor_windows.go b/drivers/shared/executor/executor_windows.go index 9d0b14070..443ce2508 100644 --- a/drivers/shared/executor/executor_windows.go +++ b/drivers/shared/executor/executor_windows.go @@ -67,3 +67,7 @@ func (e *UniversalExecutor) shutdownProcess(_ os.Signal, proc *os.Process) error return nil } + +func (e *UniversalExecutor) getAllPids() (map[int]*nomadPid, error) { + return getAllPidsByScanning() +}