From ab3e6259d08db9c8be80d4b7ec96ba288146c7c5 Mon Sep 17 00:00:00 2001 From: Lang Martin Date: Wed, 17 Jul 2019 17:28:10 -0400 Subject: [PATCH] executor_unix and _windows stub getAllPids ByScanning --- drivers/shared/executor/executor_unix.go | 4 ++++ drivers/shared/executor/executor_windows.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/drivers/shared/executor/executor_unix.go b/drivers/shared/executor/executor_unix.go index 6f90b7ade4f..2506a49e0a9 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 9d0b1407011..443ce25083d 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() +}