Re: PATCH: Lock tty directly in acct layer

From: Alan Cox
Date: Wed Aug 16 2006 - 12:46:39 EST


Ar Mer, 2006-08-16 am 18:24 +0200, ysgrifennodd Arjan van de Ven:
> > - read_lock(&tasklist_lock); /* pin current->signal */
> > + mutex_lock(&tty_mutex);
> > ac.ac_tty = current->signal->tty ?
>
> but.. can't ->signal still change, even if signal->tty isn't ?

I'm not sure, thats a good question (as if so is how to lock it). Will
investigate.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/