Re: [PATCH] splice: fix problem with sys_tee and SPLICE_F_NONBLOCK

2008-02-20 Thread Patrick McManus
On Wed, 2008-02-20 at 10:35 +0100, Jens Axboe wrote: > When non-blocking is set, ideally we want to return 0 if there's no hope > of anymore data and EAGAIN if trying later may yield some data. So how > about this instead? > Thank you Jens and Johann. -Patrick -- To unsubscribe from this

Re: [PATCH] splice: fix problem with sys_tee and SPLICE_F_NONBLOCK

2008-02-20 Thread Patrick McManus
On Wed, 2008-02-20 at 10:35 +0100, Jens Axboe wrote: When non-blocking is set, ideally we want to return 0 if there's no hope of anymore data and EAGAIN if trying later may yield some data. So how about this instead? Thank you Jens and Johann. -Patrick -- To unsubscribe from this

tee(2) and SPLICE_F_NONBLOCK and can't find eof

2008-02-19 Thread Patrick McManus
[I initially sent this query inappropriately to an individual instead of the list. My apologies.] re: tee().. I was just playing around with the simple sample on the manpage (included below) - it uses SPLICE_F_NONBLOCK as a flag. on 2.6.22 X86_64 (ubuntu 7.10) when I run the sample. the tee()

tee(2) and SPLICE_F_NONBLOCK and can't find eof

2008-02-19 Thread Patrick McManus
[I initially sent this query inappropriately to an individual instead of the list. My apologies.] re: tee().. I was just playing around with the simple sample on the manpage (included below) - it uses SPLICE_F_NONBLOCK as a flag. on 2.6.22 X86_64 (ubuntu 7.10) when I run the sample. the tee()