Re: fix off-by-one in dup2

2013-12-05 Thread Christopher Faylor
On Thu, Dec 05, 2013 at 06:45:22AM -0700, Eric Blake wrote: >On 12/04/2013 10:51 AM, Christopher Faylor wrote: > > One question, though. Assuming start is == size, then the current code > in CVS extends the fd table by only 1. If that happens often, the > current code would have to ca

Re: fix off-by-one in dup2

2013-12-05 Thread Eric Blake
On 12/04/2013 10:51 AM, Christopher Faylor wrote: One question, though. Assuming start is == size, then the current code in CVS extends the fd table by only 1. If that happens often, the current code would have to call ccalloc/memcpy/cfree a lot. Wouldn't it in fact be bette