Changes in kernel/generic/src/proc/program.c [40eab9f:f8b69a1e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/program.c
r40eab9f rf8b69a1e 99 99 if (!area) { 100 100 free(kernel_uarg); 101 task_ destroy(prg->task);101 task_release(prg->task); 102 102 prg->task = NULL; 103 103 return ENOMEM; … … 119 119 free(kernel_uarg); 120 120 as_area_destroy(as, virt); 121 task_ destroy(prg->task);121 task_release(prg->task); 122 122 prg->task = NULL; 123 123 return ELIMIT; … … 212 212 void program_ready(program_t *prg) 213 213 { 214 thread_ready(prg->main_thread); 214 thread_start(prg->main_thread); 215 thread_detach(prg->main_thread); 215 216 prg->main_thread = NULL; 216 217 } … … 251 252 program_ready(&prg); 252 253 254 task_release(prg.task); 255 253 256 return EOK; 254 257 }
Note:
See TracChangeset
for help on using the changeset viewer.