aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/kernel')
-rw-r--r--arch/um/kernel/exec.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/um/kernel/exec.c b/arch/um/kernel/exec.c
index f5d7f4569ba7..598711c62c82 100644
--- a/arch/um/kernel/exec.c
+++ b/arch/um/kernel/exec.c
@@ -42,23 +42,11 @@ void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp)
42 PT_REGS_SP(regs) = esp; 42 PT_REGS_SP(regs) = esp;
43} 43}
44 44
45#ifdef CONFIG_TTY_LOG
46extern void log_exec(char **argv, void *tty);
47#endif
48
49static long execve1(char *file, char __user * __user *argv, 45static long execve1(char *file, char __user * __user *argv,
50 char __user *__user *env) 46 char __user *__user *env)
51{ 47{
52 long error; 48 long error;
53#ifdef CONFIG_TTY_LOG
54 struct tty_struct *tty;
55 49
56 mutex_lock(&tty_mutex);
57 tty = get_current_tty();
58 if (tty)
59 log_exec(argv, tty);
60 mutex_unlock(&tty_mutex);
61#endif
62 error = do_execve(file, argv, env, &current->thread.regs); 50 error = do_execve(file, argv, env, &current->thread.regs);
63 if (error == 0) { 51 if (error == 0) {
64 task_lock(current); 52 task_lock(current);