func (s ExitStatus) ExitCode() uint32 {
	return s.code
}
ExitCode returns the exit code of the process.
This is only valid is Error() returns nil
package containerd
import (
	"context"
	"strings"
	"syscall"
	"time"
	"github.com/containerd/containerd/api/services/tasks/v1"
	"github.com/containerd/containerd/cio"
	"github.com/containerd/containerd/errdefs"
	"github.com/pkg/errors"
)
type Process interface {
	ID() string
	Pid() uint32
	Start(context.Context) error
	Delete(context.Context, ...ProcessDeleteOpts) (*ExitStatus, error)
	Kill(context.Context, syscall.Signal, ...KillOpts) error
	Wait(context.Context) (<-chan ExitStatus, error)
	CloseIO(context.Context, ...IOCloserOpts) error
	Resize(ctx context.Context, w, h uint32) error
	IO() cio.IO
	Status(context.Context) (Status, error)
}
func NewExitStatus(code uint32, t time.Time, err error) *ExitStatus {
	return &ExitStatus{
		code:     code,
		exitedAt: t,
		err:      err,
	}
}
type ExitStatus struct {
	code     uint32
	exitedAt time.Time
	err      error
}
func (s ExitStatus) Result() (uint32, time.Time, error) {
	return s.code, s.exitedAt, s.err
}