Fast path getting pid from task
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -195,6 +195,11 @@ func (s *shim) ID() string {
|
||||
return s.bundle.ID
|
||||
}
|
||||
|
||||
// PID of the task
|
||||
func (s *shim) PID() uint32 {
|
||||
return uint32(s.taskPid)
|
||||
}
|
||||
|
||||
func (s *shim) Namespace() string {
|
||||
return s.bundle.Namespace
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user