1616 limitations under the License.
1717*/
1818
19- package proc
19+ package process
2020
2121import (
2222 "context"
2323
24- "github.com/containerd/containerd/runtime/proc"
2524 runc "github.com/containerd/go-runc"
2625 google_protobuf "github.com/gogo/protobuf/types"
2726 "github.com/pkg/errors"
@@ -35,7 +34,7 @@ type initState interface {
3534 Resume (context.Context ) error
3635 Update (context.Context , * google_protobuf.Any ) error
3736 Checkpoint (context.Context , * CheckpointConfig ) error
38- Exec (context.Context , string , * ExecConfig ) (proc. Process , error )
37+ Exec (context.Context , string , * ExecConfig ) (Process , error )
3938 Kill (context.Context , uint32 , bool ) error
4039 SetExited (int )
4140}
@@ -100,7 +99,7 @@ func (s *createdState) SetExited(status int) {
10099 }
101100}
102101
103- func (s * createdState ) Exec (ctx context.Context , path string , r * ExecConfig ) (proc. Process , error ) {
102+ func (s * createdState ) Exec (ctx context.Context , path string , r * ExecConfig ) (Process , error ) {
104103 return s .p .exec (ctx , path , r )
105104}
106105
@@ -208,7 +207,7 @@ func (s *createdCheckpointState) SetExited(status int) {
208207 }
209208}
210209
211- func (s * createdCheckpointState ) Exec (ctx context.Context , path string , r * ExecConfig ) (proc. Process , error ) {
210+ func (s * createdCheckpointState ) Exec (ctx context.Context , path string , r * ExecConfig ) (Process , error ) {
212211 return nil , errors .Errorf ("cannot exec in a created state" )
213212}
214213
@@ -268,7 +267,7 @@ func (s *runningState) SetExited(status int) {
268267 }
269268}
270269
271- func (s * runningState ) Exec (ctx context.Context , path string , r * ExecConfig ) (proc. Process , error ) {
270+ func (s * runningState ) Exec (ctx context.Context , path string , r * ExecConfig ) (Process , error ) {
272271 return s .p .exec (ctx , path , r )
273272}
274273
@@ -332,7 +331,7 @@ func (s *pausedState) SetExited(status int) {
332331 }
333332}
334333
335- func (s * pausedState ) Exec (ctx context.Context , path string , r * ExecConfig ) (proc. Process , error ) {
334+ func (s * pausedState ) Exec (ctx context.Context , path string , r * ExecConfig ) (Process , error ) {
336335 return nil , errors .Errorf ("cannot exec in a paused state" )
337336}
338337
@@ -385,6 +384,6 @@ func (s *stoppedState) SetExited(status int) {
385384 // no op
386385}
387386
388- func (s * stoppedState ) Exec (ctx context.Context , path string , r * ExecConfig ) (proc. Process , error ) {
387+ func (s * stoppedState ) Exec (ctx context.Context , path string , r * ExecConfig ) (Process , error ) {
389388 return nil , errors .Errorf ("cannot exec in a stopped state" )
390389}
0 commit comments