Skip site navigation (1)Skip section navigation (2)
Date:      31 Jul 2002 12:57:09 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        George <jirka@5z.com>
Cc:        gnome@FreeBSD.ORG
Subject:   Re: GDM 2.4.0.x & FreeBSD
Message-ID:  <1028134629.318.34.camel@gyros.marcuscom.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
> 
> I suppose these are the dup2 lines.  Hmmm, this is very weird, I can't see
> 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 neccessary
> really, it's just the original design of the beast).
> 
> can you try to change this to:
> 
> 	if (pipe1[1] != STDOUT_FILENO) {
>             close (STDOUT_FILENO);
> 	    dup2 (pipe1[1], STDOUT_FILENO);
> 	    close (pipe1[1]);
> 	}
> 	
> 	if (pipe2[0] != STDIN_FILENO)  {
>             close (STDIN_FILENO);
> 	    dup2 (pipe2[0], STDIN_FILENO);
> 	    close (pipe2[0]);
> 	}
> 
> (Note those if's are just an anality and something I'll get rid of later,
> they will always trigger)
> 
> Perhaps we can't dup into those original fd's, though dup2 should do the
> close for us.

That's what I thought.  I think I may actually have tried this, but I'll
get it another shot and let you know how it goes.  Thanks for your help.

Joe

> 
> George
> 
> -- 
> George <jirka@5z.com>
>    If the facts don't fit the theory, change the facts.
>                        -- Albert Einstein
> 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1028134629.318.34.camel>