Skip to content

Commit

Permalink
default e.getAllPids in executor_basic
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin committed Jul 18, 2019
1 parent ab3e625 commit 7bd881c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions drivers/shared/executor/executor_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
4 changes: 0 additions & 4 deletions drivers/shared/executor/executor_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
4 changes: 0 additions & 4 deletions drivers/shared/executor/executor_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 7bd881c

Please sign in to comment.