Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-29 Thread David Xu
On 2012/7/29 17:16, Bruce Evans wrote: On Sun, 29 Jul 2012, David Xu wrote: I have just written two quick-and-dirty test cases: http://people.freebsd.org/~davidxu/patch/fifopipe/fifo_selectread.c http://people.freebsd.org/~davidxu/patch/fifopipe/fifo_selectwrite.c without patch for kernel cod

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-29 Thread Garrett Cooper
On Sat, Jul 28, 2012 at 7:56 PM, David Xu 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 de

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-29 Thread Bruce Evans
On Sun, 29 Jul 2012, David Xu wrote: I have just written two quick-and-dirty test cases: http://people.freebsd.org/~davidxu/patch/fifopipe/fifo_selectread.c http://people.freebsd.org/~davidxu/patch/fifopipe/fifo_selectwrite.c without patch for kernel code, a child process will print out "time

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-28 Thread Bruce Evans
On Sun, 29 Jul 2012, David Xu wrote: FIFO pipe is quite broken! Beside the bug you have reported, there is another bug, when a writer closed the pipe, select() on reader side will never return ! I am curious that so long time, nobody found the bugs, does it because FIFO is seldom used by people

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-28 Thread David Xu
On 2012/7/29 9:17, David Xu wrote: On 2012/7/29 9:02, Garrett Cooper wrote: On Sat, Jul 28, 2012 at 5:24 PM, David Xu wrote: On 2012/7/28 5:50, Garrett Cooper wrote: The following reply was made to PR kern/170203; it has been noted by GNATS. From: Garrett Cooper To: bug-follo...@freebsd.org

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-28 Thread David Xu
On 2012/7/29 9:02, Garrett Cooper wrote: On Sat, Jul 28, 2012 at 5:24 PM, David Xu wrote: On 2012/7/28 5:50, Garrett Cooper wrote: The following reply was made to PR kern/170203; it has been noted by GNATS. From: Garrett Cooper To: bug-follo...@freebsd.org, yaneg...@gmail.com Cc: Subject: Re

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-28 Thread Garrett Cooper
On Sat, Jul 28, 2012 at 5:24 PM, David Xu wrote: > On 2012/7/28 5:50, Garrett Cooper wrote: >> >> The following reply was made to PR kern/170203; it has been noted by >> GNATS. >> >> From: Garrett Cooper >> To: bug-follo...@freebsd.org, yaneg...@gmail.com >> Cc: >> Subject: Re: kern/170203: [kern

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-28 Thread David Xu
On 2012/7/28 5:50, Garrett Cooper wrote: The following reply was made to PR kern/170203; it has been noted by GNATS. From: Garrett Cooper To: bug-follo...@freebsd.org, yaneg...@gmail.com Cc: Subject: Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo Date: Fri, 27

Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo

2012-07-27 Thread Garrett Cooper
The following reply was made to PR kern/170203; it has been noted by GNATS. From: Garrett Cooper To: bug-follo...@freebsd.org, yaneg...@gmail.com Cc: Subject: Re: kern/170203: [kern] piped dd's don't behave sanely when dealing with a fifo Date: Fri, 27 Jul 2012 14:47:47 -0700 Hi David!