Changeset 3f7e1f24 in mainline for uspace/srv/sysman/units/unit_cfg.c
- Timestamp:
- 2019-08-03T08:28:26Z (6 years ago)
- Children:
- 095d03c
- Parents:
- d7c5fc0
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-04-22 17:54:08)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-03 08:28:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/units/unit_cfg.c
rd7c5fc0 r3f7e1f24 176 176 } 177 177 178 assert(unit->state = STATE_EMBRYO);178 assert(unit->state == STATE_EMBRYO); 179 179 configuration_add_unit(unit); 180 180 } … … 232 232 assert(u_cfg); 233 233 234 /*235 * Skip starting state and hold state lock during whole configuration236 * load.237 */238 fibril_mutex_lock(&unit->state_mtx);239 234 int rc = cfg_load_configuration(u_cfg->path); 240 235 … … 244 239 unit->state = STATE_FAILED; 245 240 } 246 fibril_condvar_broadcast(&unit->state_cv);247 fibril_mutex_unlock(&unit->state_mtx);248 241 249 242 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.