Date: Tue, 03 Jun 2003 15:09:50 -0300 From: "Daniel C. Sobral" <dcs@tcoip.com.br> To: Daniel Eischen <eischen@pcnet.com> Cc: threads@freebsd.org Subject: Re: [Fwd: libc_r, libthr & konsole news] Message-ID: <3EDCE46E.3040109@tcoip.com.br> In-Reply-To: <Pine.GSO.4.10.10306031335380.21509-100000@pcnet5.pcnet.com> References: <Pine.GSO.4.10.10306031335380.21509-100000@pcnet5.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen wrote:
> On Tue, 3 Jun 2003, Daniel C. Sobral wrote:
>
>
>>I'm at loss at how dup2() works, exactly. It seems that libc_r overrides
>>it, but libthr doesn't. But I don't understand the process well, because
>>I'm don't understand the syscall glue.
>
>
> Can you test libkse as well? I know that dup2 is not overridden in
> libkse either.
I saw the problem with libkse earlier. I haven't tested again, but it
looked the same as libthr.
Basically, dup2() fails, for reasons unknown (and ak03, for one, thinks
the bug is libc_r's) with libc_r, causing it not to call
konsole_grantpty. When that happens, ttyname() called later works. With
libthr, the dup2() doesn't fail, konsole_grantpty gets called, and
ttyname() fails.
This happens only one time for each pty/tty.
--
Daniel C. Sobral (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
VIVO Centro Oeste Norte
Fones: 55-61-313-7654/Cel: 55-61-9618-0904
E-mail: Daniel.Capo@tco.net.br
Daniel.Sobral@tcoip.com.br
dcs@tcoip.com.br
Outros:
dcs@newsguy.com
dcs@freebsd.org
capo@notorious.bsdconspiracy.net
"I like being single. I'm always there when I need me."
-- Art Leo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EDCE46E.3040109>
