From owner-freebsd-gnome Wed Jul 31 19:42: 2 2002 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E878F37B400 for ; Wed, 31 Jul 2002 19:41:59 -0700 (PDT) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F04143E3B for ; Wed, 31 Jul 2002 19:41:59 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.12.5/8.12.5) with ESMTP id g712fbib018343; Wed, 31 Jul 2002 22:41:37 -0400 (EDT) (envelope-from marcus@marcuscom.com) Subject: Re: GDM 2.4.0.x & FreeBSD From: Joe Marcus Clarke To: George Cc: gnome@FreeBSD.ORG In-Reply-To: <20020731170330.GB20594@monique.linux.bogus> References: <20020715225248.GI19585@monique.linux.bogus> <20020729222247.E308-100000@shumai.marcuscom.com> <20020731170330.GB20594@monique.linux.bogus> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-j3gNghNWiVQNmyZDPAd7" X-Mailer: Ximian Evolution 1.0.8 Date: 31 Jul 2002 22:41:58 -0400 Message-Id: <1028169719.79444.0.camel@shumai.marcuscom.com> Mime-Version: 1.0 Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-j3gNghNWiVQNmyZDPAd7 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2002-07-31 at 13:03, George wrote: > On Mon, Jul 29, 2002 at 10:25:09PM -0400, Joe Marcus Clarke wrote: > > George, I just pulled down your latest diffs from CVS, but the problem > > with gdm from /etc/ttys. I'm still getting the EBADF from slave.c at > > lines 1495 and 1500. >=20 > I suppose these are the dup2 lines. Hmmm, this is very weird, I can't se= e > why it wouldn't be possible to dup into stdin and stdout. Perhaps the > solution may be to not use stdin and stdout in this case (it's not necces= sary > really, it's just the original design of the beast). >=20 > can you try to change this to: >=20 > if (pipe1[1] !=3D STDOUT_FILENO) { > close (STDOUT_FILENO); > dup2 (pipe1[1], STDOUT_FILENO); > close (pipe1[1]); > } > =09 > if (pipe2[0] !=3D STDIN_FILENO) { > close (STDIN_FILENO); > dup2 (pipe2[0], STDIN_FILENO); > close (pipe2[0]); > } >=20 > (Note those if's are just an anality and something I'll get rid of later, > they will always trigger) >=20 > Perhaps we can't dup into those original fd's, though dup2 should do the > close for us. Problem still persists. Joe >=20 > George >=20 > --=20 > George > If the facts don't fit the theory, change the facts. > -- Albert Einstein >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-gnome" in the body of the message >=20 --=-j3gNghNWiVQNmyZDPAd7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQA9SJ/2b2iPiv4Uz4cRAhmHAKCGAwPJN5M73xIlvjAdv398Hz9lvQCfQ9za d68y4Xf/fPRDKczLlIqkDCc= =iy9t -----END PGP SIGNATURE----- --=-j3gNghNWiVQNmyZDPAd7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message