Changeset f2cb80a in mainline for kernel/generic/src/proc/program.c
- Timestamp:
- 2024-02-23T17:57:23Z (15 months ago)
- Children:
- 192019f
- Parents:
- 86f862c (diff), 90ba06c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2024-02-23 17:57:23)
- git-committer:
- GitHub <noreply@…> (2024-02-23 17:57:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/program.c
r86f862c rf2cb80a 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.