Changeset ed5367b in mainline for uspace/srv/sysman/units/unit_cfg.c


Ignore:
Timestamp:
2019-08-07T10:01:13Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
a097c50
Parents:
68ae40a
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-11-05 01:52:07)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 10:01:13)
Message:

sysman: Implement stopping units

Currently fails service monitoring because of taskman flawed event flags.
However, job closure works well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/units/unit_cfg.c

    r68ae40a red5367b  
    240240}
    241241
     242static int unit_cfg_stop(unit_t *unit)
     243{
     244        unit_cfg_t *u_cfg = CAST_CFG(unit);
     245        assert(u_cfg);
     246
     247        /*
     248         * It makes no sense to stop configuration (i.e. unload it), however,
     249         * lets virtually stop it not to make obstructions for potential
     250         * restart = reload of configuration.
     251         */
     252        unit->state = STATE_STOPPED;
     253        return EOK;
     254}
     255
    242256static void unit_cfg_exposee_created(unit_t *unit)
    243257{
Note: See TracChangeset for help on using the changeset viewer.