[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_installinit

On 11-Nov-07, 14:25 (CST), Arthur de Jong <adejong@debian.org> wrote: 
> This seems to be quite common code (from one of my packages (cvsd),
> don't know what the original source for this code was):
>   m=sysconf(_SC_OPEN_MAX);
>   for (i=0;i<m;i++)
>     close(i);
> There are hurd packages for this package so that should also work.

Wrong. That code is buggy. The limit of OPEN_MAX can be indeterminate,
and thus sysconf(_SC_OPEN_MAX) can return -1.


Steve Greenland
    The irony is that Bill Gates claims to be making a stable operating
    system and Linus Torvalds claims to be trying to take over the
    world.       -- seen on the net

Reply to: