Changeset 1fb4a49 in mainline for kernel/generic/src/proc/thread.c


Ignore:
Timestamp:
2019-08-07T05:34:50Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
5cd2290
Parents:
3ea98e8
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-10-18 10:51:05)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 05:34:50)
Message:

kernel: Add exit reason parameter to EVENT_EXIT

  • So that own termination can be distinguished from kills by (typically) third party.
  • Translation from exit_reason_t to task_exit_t is left to uspace (taskman).

Conflicts:

kernel/generic/include/proc/task.h
kernel/generic/src/proc/task.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/thread.c

    r3ea98e8 r1fb4a49  
    527527                         * after any IPC cleanup operations. Ignore any errors.
    528528                         */
    529                         (void)event_notify_2(EVENT_EXIT, false,
    530                             LOWER32(TASK->taskid), UPPER32(TASK->taskid));
     529                        (void)event_notify_3(EVENT_EXIT, false,
     530                            LOWER32(TASK->taskid), UPPER32(TASK->taskid),
     531                            TASK->exit_reason);
    531532                }
    532533        }
Note: See TracChangeset for help on using the changeset viewer.