This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: There is no consensus on beos yet...
- To: Daniel Berlin <dberlin at cygnus dot com>, dj at redhat dot com, Jeff Law <law at redhat dot com>
- Subject: Re: There is no consensus on beos yet...
- From: Bruce Korb <bkorb at sco dot COM>
- Date: Thu, 16 Nov 2000 12:07:35 -0800
- CC: jason at gcc dot gnu dot org, GCC Patches <gcc-patches at gcc dot gnu dot org>, Bruce Korb <bkorb at cruzio dot com>
- Organization: The Santa Cruz Operation
- References: <Pine.SOL.3.91.1001116112019.993G-100000@cse.cygnus.com>
- Reply-To: Bruce Korb <bkorb at cruzio dot com>
Daniel Berlin wrote:
> >
> > *WHICH* one is that? The shell script? (please say, "No" here :)
> Yup, we used the shell scripts because fast-fixincludes (as it was called
> then) didn't work on BeOS
That was *TWO* years ago! I never heard a peep about this in
all that time!
> fork doesn't work all that well on BeOS, and you expect to be able to
> fork, then duplicate the file descriptors using fcntl so you can make stdin,
> stdout.
>
> Nobody on beos uses fork (literally), because it doesn't mix with threads.
> fcntl is also not up to snuff, because, once again, nobody uses fcntl on
> BeOS.
> Nobody uses the posix api stuff unless they are porting unixy apps.
There is a special DOS variation, too. It, also, does not use fork().
It uses system() to handle subprocesses. Look at "Makefile.DOS".
> It's not the actual piing, which works fine on BeOS, it's the way you are
> trying to set up those pipes, using fcntl, and forking, which appears to
> be causing hell.
>
> My best guess is that the hang is caused by not being able to dupe the FD
> through fcntl, and thus, the shell process sittings waiting to read from
> a pipe that isn't giving it any input.
Yep. The DOS version ought to work.
> As I said, i'm happy to provide a computer you can see it on, and attempt
> to debug.
First, try the DOS version. The last I remember, it worked,
but I don't think the DOS folks (DJ Delorie) ever got around
to telling me it was ready for prime time. Then, failing that,
send me a machine name and login via private email (to bkorb@cruzio.com).
Thanks!