Re: [Patch] sys/kern/kern_descrip.c: remove double limit check in fcntl()

2006-11-14 Thread John Baldwin
On Thursday 09 November 2006 14:33, Ed Schouten wrote: > * Ed Schouten <[EMAIL PROTECTED]> wrote: > > The patch below prevents this by performing this check by do_dup(). It > > will prevent fcntl() from PROC_LOCK()'ing twice. It also fixes the > > return value of fcntl(). The manual page states tha

Re: [Patch] sys/kern/kern_descrip.c: remove double limit check in fcntl()

2006-11-09 Thread Ed Schouten
* Ed Schouten <[EMAIL PROTECTED]> wrote: > The patch below prevents this by performing this check by do_dup(). It > will prevent fcntl() from PROC_LOCK()'ing twice. It also fixes the > return value of fcntl(). The manual page states that it should return > EMFILE when it exceeds its limit, though t