Commit 6ab26126 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Always look for .rej files...

parent 14721f53
...@@ -91,9 +91,9 @@ VSUB_closefrom(int fd) ...@@ -91,9 +91,9 @@ VSUB_closefrom(int fd)
if (maxfd == 0) if (maxfd == 0)
maxfd = sysconf(_SC_OPEN_MAX); maxfd = sysconf(_SC_OPEN_MAX);
assert(i > 0); assert(maxfd > 0);
for (; i > fd; i--) for (; maxfd > fd; maxfd--)
(void)close(i); (void)close(maxfd);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment