Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 2003 13:39:52 -0400 (EDT)
From:      Daniel Eischen <eischen@pcnet.com>
To:        "Daniel C. Sobral" <dcs@tcoip.com.br>
Cc:        threads@freebsd.org
Subject:   Re: [Fwd: libc_r, libthr & konsole news]
Message-ID:  <Pine.GSO.4.10.10306031335380.21509-100000@pcnet5.pcnet.com>
In-Reply-To: <3EDC9D99.2020102@tcoip.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
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 have a patch for signals at:

  http://people.freebsd.org/~deischen/kse/sig.diffs

that you might want to apply first.  It lets konsole run and put
up a dialog if the chown fails (at least it works for me).

-- 
Dan Eischen

> -------- Original Message --------
> Subject: libc_r, libthr & konsole news
> Date: Tue, 03 Jun 2003 09:47:43 -0300
> From: Daniel C. Sobral <dcs@tcoip.com.br>
> To: CURRENT <freebsd-current@freebsd.org>
> 
> Alas, I found *what* is going on differently depending on the library used.
> 
> With libc_r, dup2() gets called and fails, preventing execution of
> konsole_grantpty, with libthr things work, konsole_grantpty gets called
> and... ttyname fails. :-)
> 
> Now, dup2() implementation seems to differ between libc_r and libthr
> (though I'm open to be shown that is not so -- I don't quite understand
> how things work here).
> 
> I have verified that by preventing execution of
> /usr/local/bin/konsole_grantpty (by the simple artifice of renaming it),
> the problem DOES NOT HAPPEN.
> 
> Now... to find out what's different between both dup2() implementations...
> 
> -- 
> 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 think sex is better than logic, but I can't prove it."
> 
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
> 
> -- 
> 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
> 
> Hate the sin and love the sinner.
> 		-- Mahatma Gandhi
> 
> _______________________________________________
> freebsd-threads@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10306031335380.21509-100000>