On 11-Nov-07, 14:25 (CST), Arthur de Jong <[EMAIL PROTECTED]> 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 -- 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]