Re: TIOCGWINSZ retuns old pty size after receiving SIGWINCH

From: Alan Cox
Date: Wed Aug 13 2008 - 05:37:40 EST


On Tue, 12 Aug 2008 19:58:20 -0400
"Javeed Shaikh" <syscrash2k@xxxxxxxxx> wrote:

> I appear to have fixed it.

You've moved the race.

> It seems that SIGWINCH was being fired off before the tty's size was
> updated, as Ico hypothesized.

There is what I believe to be a correct fix in the -next tree. It is a
bit invasive for 2.6.27 given we are in the -rc tree but I could push the
relevant pieces if the problem justifies the risk

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/