Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2002 16:57:28 -0800
From:      Matthew Hunt <mph@astro.caltech.edu>
To:        esoha@attbi.com
Cc:        ports@freebsd.org
Subject:   Re: Bento errorlogs and /dev/fd/*
Message-ID:  <20020329165728.A81849@wopr.caltech.edu>
In-Reply-To: <20020330005346.ZOZS1147.rwcrmhc52.attbi.com@rwcrwbc57>; from esoha@attbi.com on Sat, Mar 30, 2002 at 12:53:44AM %2B0000
References:  <20020330005346.ZOZS1147.rwcrmhc52.attbi.com@rwcrwbc57>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Eyal,

On Sat, Mar 30, 2002 at 12:53:44AM +0000, esoha@attbi.com wrote:

> The right thing to do is re-write crafty to allow those
> commands from something other than stdin, or allow crafty
> to suck in both commands and the data from stdin, like
> how SMTP goes into data mode after the DATA command.  Can
> we rewrite crafty?

No, we can't, but you've got the problem pegged.  :-)

> Assuming that we can't, how about using mknod to make a
> node?  I don't like that because I don't know how to test
> if the node isn't already in use.  Maybe start with 100
> and count until /dev/fd/x doesn't exist, then mknod
> /dev/fx/x and use that.  unlink it when you're done.

I think you're onto something... what about using mkfifo(1) to make
a named pipe somewhere in the port's work directory and feeding the
uncompressed data to crafty through that?  Should work, I think...

Thanks!

Matt

-- 
Matthew Hunt <mph@astro.caltech.edu> * Stay close to the Vorlon.
http://www.pobox.com/~mph/           *

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




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