diff --git a/drivers/shared/executor/executor_basic.go b/drivers/shared/executor/executor_basic.go index e34c3682b..137891c5e 100644 --- a/drivers/shared/executor/executor_basic.go +++ b/drivers/shared/executor/executor_basic.go @@ -15,3 +15,7 @@ func NewExecutorWithIsolation(logger hclog.Logger) Executor { func (e *UniversalExecutor) configureResourceContainer(_ int) error { return nil } func (e *UniversalExecutor) runAs(_ string) error { return nil } + +func (e *UniversalExecutor) getAllPids() (map[int]*nomadPid, error) { + return getAllPidsByScanning() +} diff --git a/drivers/shared/executor/executor_unix.go b/drivers/shared/executor/executor_unix.go index 2506a49e0..6f90b7ade 100644 --- a/drivers/shared/executor/executor_unix.go +++ b/drivers/shared/executor/executor_unix.go @@ -43,7 +43,3 @@ 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 443ce2508..9d0b14070 100644 --- a/drivers/shared/executor/executor_windows.go +++ b/drivers/shared/executor/executor_windows.go @@ -67,7 +67,3 @@ func (e *UniversalExecutor) shutdownProcess(_ os.Signal, proc *os.Process) error return nil } - -func (e *UniversalExecutor) getAllPids() (map[int]*nomadPid, error) { - return getAllPidsByScanning() -}