crash in tty code in 6.1.. fixed since?

Hans Petter Selasky hselasky at c2i.net
Fri Jul 13 08:55:11 UTC 2007


On Friday 13 July 2007 10:25, Attilio Rao wrote:
> Hans Petter Selasky wrote:
> > If TTY was not Giant locked, you would have had an error there if another
> > mutex was locked, and the problem would have been solved years ago :-)
>
> Not sure what you mean, but the first evidence is that you would have
> explicitly drop/pickup the mutex so that you would have handled the race
>   not trasparently as Giant does.
> Moreover, it seems that tty should be partially locked with a sleeping
> primitive (sx probabilly).
>

If you lock a mutex first and then a sx-lock, you should get a warning, right?

--HPS


More information about the freebsd-current mailing list