git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] sem2mutex: tty
[pandora-kernel.git]
/
kernel
/
exit.c
diff --git
a/kernel/exit.c
b/kernel/exit.c
index
d1e8d50
..
8037405
100644
(file)
--- a/
kernel/exit.c
+++ b/
kernel/exit.c
@@
-345,9
+345,9
@@
void daemonize(const char *name, ...)
exit_mm(current);
set_special_pids(1, 1);
-
down(&tty_sem
);
+
mutex_lock(&tty_mutex
);
current->signal->tty = NULL;
-
up(&tty_sem
);
+
mutex_unlock(&tty_mutex
);
/* Block and flush all signals */
sigfillset(&blocked);