17244: Refactor crunchstat to use cgroup unified/hybrid modes.
[arvados.git] / lib / crunchrun / executor.go
index 6ec5b838f681fe3c03a778f966c58979763f9031..29abab631f2c03bba9cd2deb7d49bd56571b4ab0 100644 (file)
@@ -51,8 +51,10 @@ type containerExecutor interface {
        // Start the container
        Start() error
 
-       // CID the container will belong to
-       CgroupID() string
+       // Process ID of a process in the container (return 0 or
+       // negative if container is finished or no process has started
+       // yet)
+       Pid() int
 
        // Stop the container immediately
        Stop() error