Changeset 8d74fdd in mainline for uspace/srv/sysman/units/unit_svc.c


Ignore:
Timestamp:
2019-08-17T13:57:05Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
f92b315
Parents:
be07995
git-author:
Michal Koutný <xm.koutny+hos@…> (2016-01-27 00:01:13)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-17 13:57:05)
Message:

sysman: Shutdown operation as shutdown.tgt isolation

Since not all dependencies are captured by graph, sysman and taskman are
ignored when stopping servers, so that they can complete the shutdown
transition.

Conflicts:

boot/Makefile.common

File:
1 edited

Legend:

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

    rbe07995 r8d74fdd  
    120120        assert(unit->state == STATE_STARTED);
    121121
     122        /*
     123         * Ugly trick -- critical service is running despite being stopped
     124         * circumvent killing ourselves during shutdown (TODO dependencies).
     125         */
     126        if (u_svc->critical) {
     127                unit->state = STATE_STOPPED;
     128                return EOK;
     129        }
     130
    122131        int rc = task_kill(u_svc->main_task_id);
    123132
Note: See TracChangeset for help on using the changeset viewer.