From owner-freebsd-threads@FreeBSD.ORG Tue Jun 3 06:07:43 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A253237B401 for ; Tue, 3 Jun 2003 06:07:43 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B56B43F3F for ; Tue, 3 Jun 2003 06:07:40 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h53D7bl00741 for ; Tue, 3 Jun 2003 10:07:37 -0300 Message-ID: <3EDC9D99.2020102@tcoip.com.br> Date: Tue, 03 Jun 2003 10:07:37 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4a) Gecko/20030416 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: threads@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [Fwd: libc_r, libthr & konsole news] X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 13:07:44 -0000 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. -------- Original Message -------- Subject: libc_r, libthr & konsole news Date: Tue, 03 Jun 2003 09:47:43 -0300 From: Daniel C. Sobral To: CURRENT 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