Changeset 8d74fdd in mainline for uspace/srv/sysman/units
- Timestamp:
- 2019-08-17T13:57:05Z (6 years ago)
- 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)
- Location:
- uspace/srv/sysman/units
- Files:
-
- 2 edited
-
unit_svc.c (modified) (1 diff)
-
unit_svc.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/units/unit_svc.c
rbe07995 r8d74fdd 120 120 assert(unit->state == STATE_STARTED); 121 121 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 122 131 int rc = task_kill(u_svc->main_task_id); 123 132 -
uspace/srv/sysman/units/unit_svc.h
rbe07995 r8d74fdd 43 43 44 44 bool anonymous; 45 46 /** Service can't be stopped, temporary workaround for shutdown */ 47 bool critical; 45 48 } unit_svc_t; 46 49
Note:
See TracChangeset
for help on using the changeset viewer.
