From owner-freebsd-threads@FreeBSD.ORG Sun Jun 29 10:32:58 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 67A6637B401; Sun, 29 Jun 2003 10:32:58 -0700 (PDT) Received: from mx8.mail.ru (mx8.mail.ru [194.67.23.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6496B43FBF; Sun, 29 Jun 2003 10:32:57 -0700 (PDT) (envelope-from kabaev@mail.ru) Received: from [151.203.201.219] (port=50073 helo=kan.dnsalias.net) by mx8.mail.ru with esmtp id 19Wg2p-000K3C-00; Sun, 29 Jun 2003 21:32:55 +0400 Received: from kan.dnsalias.net (ak03@localhost [127.0.0.1]) by kan.dnsalias.net (8.12.9/8.12.9) with ESMTP id h5THWpca002588; Sun, 29 Jun 2003 13:32:51 -0400 (EDT) (envelope-from kan@kan.dnsalias.net) Received: (from kan@localhost) by kan.dnsalias.net (8.12.9/8.12.9/Submit) id h5THWoLW002587; Sun, 29 Jun 2003 13:32:50 -0400 (EDT) Date: Sun, 29 Jun 2003 13:32:50 -0400 From: Alexander Kabaev To: deischen@freebsd.org Message-Id: <20030629133250.27346449.kabaev@mail.ru> In-Reply-To: References: <200306291701.59204.avleeuwen@piwebs.com> X-Mailer: Sylpheed version 0.9.0claws50 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: Not detected cc: threads@freebsd.org cc: David Xu cc: kde@freebsd.org cc: Arjan van Leeuwen Subject: Re: libkse & konsole 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: Sun, 29 Jun 2003 17:32:58 -0000 On Sun, 29 Jun 2003 11:14:06 -0400 (EDT) Daniel Eischen wrote: > On Sun, 29 Jun 2003, Arjan van Leeuwen wrote: > > > if (! (str_ptr=ttyname(tt)) ) { > > str_ptr = ttynam; > > abort(); > > } > > > > This is where it is aborting. I'm not sure where to go from here. > > Apparently, Konsole has difficulty chowning and chmodding the > > /dev/ttypx that it wants to use. > > Can you debug the open(), chown(), and chmod() of the tty > to see what happens (any errors?). Do not bother. ttyname() calls a isatty() function which in turn calls IOCGETA which in turn fails :) Just use devname there already.