Re: TIOCGWINSZ retuns old pty size after receiving SIGWINCH

From: Alan Cox
Date: Sun Oct 05 2008 - 08:03:57 EST


On Sun, 5 Oct 2008 19:39:44 +0800
Kanru Chen <koster@xxxxxxxxxxxxx> wrote:

> Hi Alan,
>
> Could you push a fix for this problem for .27 release? It seems many
> people encounter this if they compile with PREEMPT enabled and it's quite
> annoying.

The relevant fixes were pushed and are in the current -rc series kernels.
The tty mutex now locks the TIOCG/SWINSZ calls using the tty mutex lock
of the tty side of tty/pty pairs.

Alan
--
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/