"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
fails.
What is the output of the following command, around the point of the
close?
strace dd if=myfirmware.bin of=/dev/mydevice
Can you start a debugger and put a breakpoint on close_stdout and see
what happens?