src/linux/cgroups.cpp
// Whether some subsystems are not enabled.
Whether some subsystems are not enabled.
Whether some subsystems are not enabled .
foreach (const std::string& name, names) {
    if (infos.find(name) == infos.end()) {
      return Try<bool>::error("Subsystem " + name + " not found");
    }
    if (!infos[name].enabled) {
      disabled = true;
    }
  }
foreach ( const std :: string & name , names ) { if ( infos . find ( name ) == infos . end ( ) ) { return Try < bool > :: error ( " " + name + " " ) ; } if ( ! infos [ name ] . enabled ) { disabled = true ; } }
Whether some subsystems are not enabled.
Whether some subsystems are not enabled .
// Here, we don't return false immediately because we want to return // error if any of the given subsystems contain an invalid name.