Subject: Re: Truncated output from ptys at slave exit
To: None <enami@sm.sony.co.jp>
From: Takahiro Kambe <taca@back-street.net>
List: current-users
Date: 09/07/2003 00:22:27
In message <200309060020.h860KbTU012395@memory-leak.sm.sony.co.jp>
	on Sat, 6 Sep 2003 09:20:37 +0900 (JST),
	enami tsugutomo <enami@sm.sony.co.jp> 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).
> 
> # or revisit as commented before we have tons of hack.
Great.  It fixed the problem in the case of mew.

-- 
Takahiro Kambe <taca@back-street.net>