aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorFelipe Cerqueira <felipec@mpi-sws.org>2013-02-12 11:45:17 -0500
committerBjoern Brandenburg <bbb@mpi-sws.org>2013-08-07 03:46:53 -0400
commit44bbdeefae36fd3926eeccce4e715d91d5ffe6a0 (patch)
tree1fa3c348d27ae50204384aa02fcf00765691eacb /kernel/exit.c
parenta8ffcb17006ab6e278526ae8ab75d15fd08d030f (diff)
Hook into fork(), exec(), and exit()
Allow LITMUS^RT to do some work when a process is created or terminated.
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 7bb73f9d09db..ab36666c0875 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -59,6 +59,8 @@
59#include <asm/pgtable.h> 59#include <asm/pgtable.h>
60#include <asm/mmu_context.h> 60#include <asm/mmu_context.h>
61 61
62extern void exit_od_table(struct task_struct *t);
63
62static void exit_mm(struct task_struct * tsk); 64static void exit_mm(struct task_struct * tsk);
63 65
64static void __unhash_process(struct task_struct *p, bool group_dead) 66static void __unhash_process(struct task_struct *p, bool group_dead)
@@ -781,6 +783,8 @@ void do_exit(long code)
781 tty_audit_exit(); 783 tty_audit_exit();
782 audit_free(tsk); 784 audit_free(tsk);
783 785
786 exit_od_table(tsk);
787
784 tsk->exit_code = code; 788 tsk->exit_code = code;
785 taskstats_exit(tsk, group_dead); 789 taskstats_exit(tsk, group_dead);
786 790