src/modular/bin/basemgr_launcher/main.cc
// Returns false if no basemgr debug service can be found, because
// basemgr is not running.
Returns false if no basemgr debug service can be found, because
basemgr is not running.
Returns false if no basemgr debug service can be found because basemgr is not running .
bool FindBasemgrDebugService(std::string* service_path) {
  glob_t globbuf;
  glob(kBasemgrHubPath, 0, nullptr, &globbuf);
  bool found = false;
  if (globbuf.gl_pathc > 0) {
    *service_path = globbuf.gl_pathv[0];
    found = true;
  }
  globfree(&globbuf);
  return found;
}
bool FindBasemgrDebugService ( std :: string * service_path ) { glob_t globbuf ; glob ( kBasemgrHubPath , 0 , nullptr , & globbuf ) ; bool found = false ; if ( globbuf . gl_pathc > 0 ) { * service_path = globbuf . gl_pathv [ 0 ] ; found = true ; } globfree ( & globbuf ) ; return found ; }
Returns false if no basemgr debug service can be found, because
basemgr is not running.
Returns false if no basemgr debug service can be found because basemgr is not running .