[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible dd bug - no close of "if=/of=" fds

From: Paul Eggert
Subject: Re: Possible dd bug - no close of "if=/of=" fds
Date: Wed, 07 Dec 2005 09:25:02 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

"HARDY, Steven" <address@hidden> writes:

> I was expecting dd to explicitly close the if=/of= file descriptors

It should do that.  dd.c's main program invokes "atexit (close_stdout);",
and this should invoke close_stdout (which reports an error) if the close

What is the output of the following command, around the point of the

strace dd if=myfirmware.bin of=/dev/mydevice

Can you start a debugger and put a breakpoint on close_stdout and see
what happens?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]