Revert "use state machine management for exec.Pid()"

This reverts commit bbc2a995f9.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2019-01-31 18:59:29 -08:00
parent f7f24e2f3a
commit 9777d76890
3 changed files with 2 additions and 25 deletions

View File

@@ -69,10 +69,8 @@ func (e *execProcess) ID() string {
}
func (e *execProcess) Pid() int {
return e.execState.Pid()
}
func (e *execProcess) pidv() int {
e.mu.Lock()
defer e.mu.Unlock()
return e.pid
}