[BusyBox] dd doesn't close stdout?

David Douthitt ssrat at mailbag.com
Thu Dec 14 17:18:39 UTC 2000


On 13 Dec 2000, at 20:33, Matt Kraai wrote:

> On Wed, Dec 13, 2000 at 07:56:07PM -0600, David Douthitt wrote:
> > I was recently doing thus:
> > 
> > Oxygen-sys1# dd if=/dev/fd0u1680 | nc otherhost 1885
> > 
> > ...and...
> > 
> > otherhost# nc -l -p 1885 > disk.ima
> > 
> > ...
> > 
> > Doing thus, it appeared to be necessary to "break" (with ^C) out of
> > the nc (netcat 1.1) command.
> > 
> > Is this because dd isn't closing the stdout?  Or is it soemthing
> > else?
> 
> Nope.  It's because BusyBox nc didn't shutdown the sending portion of
> the socket when stdin is closed.  A fix is now in CVS which should
> allow the above to work.

Believe it or not, I think I'd argue against that fix.  The nc listed 
above was *NOT* busybox nc, but the full version; so if the real nc 
"hangs" busybox nc should too - unless this bug was fixed or 
something.  Or is it a feature?

-- 
David Douthitt
UNIX Systems Administrator
HP-UX, Linux, Unixware
ddouthitt at mennonite.minister.net





More information about the busybox mailing list