Browse code

Windows: Remove GetPidsForContainer

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2017/01/19 05:28:52
Showing 1 changed files
... ...
@@ -564,23 +564,9 @@ func (clnt *client) Restore(containerID string, _ StdioCallback, unusedOnWindows
564 564
 }
565 565
 
566 566
 // GetPidsForContainer returns a list of process IDs running in a container.
567
-// Although implemented, this is not used in Windows.
567
+// Not used on Windows.
568 568
 func (clnt *client) GetPidsForContainer(containerID string) ([]int, error) {
569
-	var pids []int
570
-	clnt.lock(containerID)
571
-	defer clnt.unlock(containerID)
572
-	cont, err := clnt.getContainer(containerID)
573
-	if err != nil {
574
-		return nil, err
575
-	}
576
-
577
-	// Add the first process
578
-	pids = append(pids, int(cont.containerCommon.systemPid))
579
-	// And add all the exec'd processes
580
-	for _, p := range cont.processes {
581
-		pids = append(pids, int(p.processCommon.systemPid))
582
-	}
583
-	return pids, nil
569
+	return nil, errors.New("not implemented on Windows")
584 570
 }
585 571
 
586 572
 // Summary returns a summary of the processes running in a container.