Re: [PATCH 0/1] SIGWINCH problem with terminal apps still alive

From: Alan Cox
Date: Fri Oct 10 2008 - 05:30:13 EST


On Fri, 10 Oct 2008 03:12:34 +0200
Adam TlaÅka <atlka@xxxxxxxxx> wrote:

> Welcome,
>
> now we have 2.6.26.6 kernel and still terminal resize leads to
> undesired effects. It is very inconvenient to wait for 2.6.27 for
> corrections.
>
> As Alan Cox previously said mutexes generally work but as we can
> observe in case of kill_pgrp() call inside mutex lock we got
> race because of rescheduling so lock is not working here.
> Rearanging code so the variable change is placed before kill_pgrp()
> call removes mentioned race situaction.
>
> Signed-off-by: Adam Tla/lka <atlka@xxxxxxxxx>
>
> I strongly suggest to patch actual 2.6.26.x kernel to remove this very
> nasty pts behaviour.

NAK again

Moving the copies around simply moves the race, it might be that it fixes
your box and unfixes other peoples.
--
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/