Skip to content

Commit b7106a9

Browse files
author
John Howard
committedFeb 2, 2017
Windows: Remove unused commandLine
Signed-off-by: John Howard <[email protected]>
1 parent de26546 commit b7106a9

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed
 

‎libcontainerd/client_windows.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ func (clnt *client) Create(containerID string, checkpoint string, checkpointDir
251251
client: clnt,
252252
friendlyName: InitFriendlyName,
253253
},
254-
commandLine: strings.Join(spec.Process.Args, " "),
255254
},
256255
processes: make(map[string]*process),
257256
},
@@ -354,8 +353,7 @@ func (clnt *client) AddProcess(ctx context.Context, containerID, processFriendly
354353
client: clnt,
355354
systemPid: uint32(pid),
356355
},
357-
commandLine: createProcessParms.CommandLine,
358-
hcsProcess: newProcess,
356+
hcsProcess: newProcess,
359357
}
360358

361359
// Add the process to the container's list of processes

‎libcontainerd/process_windows.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ type process struct {
1313
processCommon
1414

1515
// Platform specific fields are below here.
16-
17-
// commandLine is to support returning summary information for docker top
18-
commandLine string
19-
hcsProcess hcsshim.Process
16+
hcsProcess hcsshim.Process
2017
}
2118

2219
type autoClosingReader struct {

0 commit comments

Comments
 (0)
Please sign in to comment.