X Tutup
Skip to content

Commit 8e90cd6

Browse files
Merge pull request containerd#329 from runcom/expose-real-pids
api.proto: expose real pids when adding processes
2 parents 3c631b9 + 35f313d commit 8e90cd6

File tree

5 files changed

+173
-170
lines changed

5 files changed

+173
-170
lines changed

api/grpc/server/server_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ func (s *apiServer) AddProcess(ctx context.Context, r *types.AddProcessRequest)
5454
if err := <-e.ErrorCh(); err != nil {
5555
return nil, err
5656
}
57-
<-e.StartResponse
58-
return &types.AddProcessResponse{}, nil
57+
sr := <-e.StartResponse
58+
return &types.AddProcessResponse{SystemPid: uint32(sr.ExecPid)}, nil
5959
}

0 commit comments

Comments
 (0)
X Tutup