Fast path getting pid from task
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -84,6 +84,11 @@ func (t *Task) Namespace() string {
|
||||
return t.namespace
|
||||
}
|
||||
|
||||
// PID of the task
|
||||
func (t *Task) PID() uint32 {
|
||||
return uint32(t.pid)
|
||||
}
|
||||
|
||||
// Delete the task and return the exit status
|
||||
func (t *Task) Delete(ctx context.Context) (*runtime.Exit, error) {
|
||||
rsp, err := t.shim.Delete(ctx, empty)
|
||||
|
Reference in New Issue
Block a user