Changeset 103939e in mainline for kernel/generic/src/proc/task.c
- Timestamp:
- 2019-08-06T20:15:57Z (6 years ago)
- Children:
- 0a8f070
- Parents:
- fb13b44
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-08-10 13:51:22)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-06 20:15:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
rfb13b44 r103939e 586 586 /** Kill the currently running task. 587 587 * 588 * @param notifySend out fault notifications.588 * @param fault Send out fault notifications. 589 589 * 590 590 * @return Zero on success or an error code from errno.h. 591 591 * 592 592 */ 593 void task_kill_self(bool notify)593 void task_kill_self(bool fault) 594 594 { 595 595 /* … … 599 599 * that's all you get. 600 600 */ 601 if ( notify) {601 if (fault) { 602 602 /* Notify the subscriber that a fault occurred. */ 603 603 if (event_notify_3(EVENT_FAULT, false, LOWER32(TASK->taskid), … … 619 619 /** Process syscall to terminate the current task. 620 620 * 621 * @param notifySend out fault notifications.622 * 623 */ 624 sys_errno_t sys_task_exit(sysarg_t notify)625 { 626 task_kill_self( notify);621 * @param fault Send out fault notifications. 622 * 623 */ 624 sys_errno_t sys_task_exit(sysarg_t fault) 625 { 626 task_kill_self(fault); 627 627 unreachable(); 628 628 }
Note:
See TracChangeset
for help on using the changeset viewer.