Changeset 241f1985 in mainline for uspace/srv/sysman/units/unit_svc.c
- Timestamp:
- 2019-08-31T10:45:17Z (6 years ago)
- Children:
- 102f641
- Parents:
- f92b315
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-23 22:04:34)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-31 10:45:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/units/unit_svc.c
rf92b315 r241f1985 32 32 #include <stdlib.h> 33 33 #include <task.h> 34 #include <str.h> 34 35 35 36 #include "log.h" … … 58 59 } 59 60 60 static int unit_svc_load(unit_t *unit, ini_configuration_t *ini_conf,61 static errno_t unit_svc_load(unit_t *unit, ini_configuration_t *ini_conf, 61 62 text_parse_t *text_parse) 62 63 { … … 76 77 } 77 78 78 static int unit_svc_start(unit_t *unit)79 static errno_t unit_svc_start(unit_t *unit) 79 80 { 80 81 unit_svc_t *u_svc = CAST_SVC(unit); … … 84 85 assert(unit->state == STATE_STOPPED); 85 86 86 int rc = task_spawnv(&u_svc->main_task_id, NULL, u_svc->exec_start.path,87 errno_t rc = task_spawnv(&u_svc->main_task_id, NULL, u_svc->exec_start.path, 87 88 u_svc->exec_start.argv); 88 89 … … 100 101 */ 101 102 if (str_cmp(unit->name, "devman.svc") == 0) { 102 async_usleep(100000);103 fibril_usleep(100000); 103 104 if (console_kcon()) { 104 105 sysman_log(LVL_DEBUG2, "%s: Kconsole grabbed.", __func__); … … 111 112 } 112 113 113 static int unit_svc_stop(unit_t *unit)114 static errno_t unit_svc_stop(unit_t *unit) 114 115 { 115 116 unit_svc_t *u_svc = CAST_SVC(unit); … … 129 130 } 130 131 131 int rc = task_kill(u_svc->main_task_id);132 errno_t rc = task_kill(u_svc->main_task_id); 132 133 133 134 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.