]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/exit.c
[PATCH] autofs4: follow_link missing functionality
[linux-2.6-omap-h63xx.git] / kernel / exit.c
index d1e8d500a7e127cb2915da8e2da4beab942c6e99..8037405e136e8aae1ccf4c20eb6725e553db6d88 100644 (file)
@@ -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);