func ContainerIDForPID(pid int32) (string, error) {
	mux.RLock()
	defer mux.RUnlock()

	if pidMap == nil {
		return "", errPidMapUnavailable
	}

	cID, found := pidMap[pid]
	if !found {
		return "", errContainerUnavailable
	}

	return cID, nil

}
// ContainerIDForPID returns the matching container id for a pid, or an error if not found.
ContainerIDForPID returns the matching container id for a pid, or an error if not found.
// ContainerIDForPID returns the matching container id for a pid or an error if not found .
func ContainerIDForPID(pid int32) (string, error) {
	mux.RLock()
	defer mux.RUnlock()
	if pidMap == nil {
		return "", errPidMapUnavailable
	}
	cID, found := pidMap[pid]
	if !found {
		return "", errContainerUnavailable
	}
	return cID, nil
}
func ContainerIDForPID ( pid int32 ) ( string , error ) { mux . RLock ( ) defer mux . RUnlock ( ) if pidMap == nil { return " " , errPidMapUnavailable } cID , found := pidMap [ pid ] if ! found { return " " , errContainerUnavailable } return cID , nil }
ContainerIDForPID returns the matching container id for a pid, or an error if not found.
ContainerIDForPID returns the matching container id for a pid or an error if not found .