Changeset ed5367b in mainline for uspace/srv/sysman/job.c
- Timestamp:
- 2019-08-07T10:01:13Z (5 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/job.c
r68ae40a red5367b 199 199 200 200 int rc; 201 // TODO put here similar evaluation as in job_check 202 // goal is to have job_run "idempotent" 201 203 switch (job->target_state) { 202 204 case STATE_STARTED: 203 // TODO put here same evaluation as in job_check204 // goal is to have job_run "idempotent"205 205 if (u->state == job->target_state) { 206 206 rc = EOK; … … 209 209 } 210 210 break; 211 case STATE_STOPPED: 212 if (u->state == job->target_state) { 213 rc = EOK; 214 } else { 215 rc = unit_stop(u); 216 } 217 break; 211 218 default: 212 // TODO implement other states 219 // TODO implement other states? 213 220 assert(false); 214 221 }
Note:
See TracChangeset
for help on using the changeset viewer.