Subject: Re: Truncated output from ptys at slave exit
To: enami tsugutomo <enami@sm.sony.co.jp>
From: Michael Eriksson <Michael.Eriksson@era-t.ericsson.se>
List: tech-kern
Date: 09/07/2003 13:38:19
enami tsugutomo wrote:
> > It looks like SA bug. ltsleep(PCATCH) called inside exit1() returns
> > EINTR. So, ttywait() fails to drain output.
>
> Here is possible change. As the lwp first entered exit1() waits other
> lwps to exit, I guess this fixes it (at least it did for the supplied
> test case). There is pool_get() before the wait but since it doesn't
> set PCATCH, it is safe (anyway, we can defer it).
Yes, that did the trick. Thanks a lot!
--
Michael Eriksson <eramore@era-t.ericsson.se>
/usr/sys/ken/slp.c: * You are not expected to understand this.