kern/170203: [kern] piped dd' s don'
t behave sanely when dealing with a fifo
Garrett Cooper
yanegomi at gmail.com
Sun Jul 29 20:13:55 UTC 2012
On Sat, Jul 28, 2012 at 7:56 PM, David Xu <listlog2011 at gmail.com> wrote:
...
> I have updated patch, the patch fixed lost-notification bug for select():
> http://people.freebsd.org/~davidxu/patch/fifopipe/kernel_pipe2.diff
This patch prevents the hang from occurring on CURRENT / r238870
(it was missing a header definition in sys/pipe.h). Now all that
remains is chasing down why dd's records accounting is bogus.
The attached patch makes the output somewhat more meaningful with
dd if it receives a SIGPIPE.
Thanks!
-Garrett
PS Fedora 17 does what I expect by reporting the actual number of
records transferred across the fifo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-fifo-hangs-on-CURRENT-r238870.patch
Type: application/octet-stream
Size: 2908 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-bugs/attachments/20120729/4aa5a4e6/fix-fifo-hangs-on-CURRENT-r238870.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-dd-with-fifos.patch
Type: application/octet-stream
Size: 889 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-bugs/attachments/20120729/4aa5a4e6/fix-dd-with-fifos.obj
More information about the freebsd-bugs
mailing list