projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] tty: ->signal->tty locking
[powerpc.git]
/
arch
/
um
/
kernel
/
exec.c
diff --git
a/arch/um/kernel/exec.c
b/arch/um/kernel/exec.c
index
0561c43
..
8d56ec6
100644
(file)
--- a/
arch/um/kernel/exec.c
+++ b/
arch/um/kernel/exec.c
@@
-39,12
+39,13
@@
static long execve1(char *file, char __user * __user *argv,
char __user *__user *env)
{
long error;
char __user *__user *env)
{
long error;
+ struct tty_struct *tty;
#ifdef CONFIG_TTY_LOG
mutex_lock(&tty_mutex);
#ifdef CONFIG_TTY_LOG
mutex_lock(&tty_mutex);
- t
ask_lock(current); /* FIXME: is this needed ? */
- log_exec(argv, current->signal->tty);
-
task_unlock(current
);
+ t
ty = get_current_tty();
+ if (tty)
+
log_exec(argv, tty
);
mutex_unlock(&tty_mutex);
#endif
error = do_execve(file, argv, env, ¤t->thread.regs);
mutex_unlock(&tty_mutex);
#endif
error = do_execve(file, argv, env, ¤t->thread.regs);