Fix undefined OPEN_MAX error

Not all systems define POSIX.1 value OPEN_MAX. In this case just close
all descriptors up to some arbitrary limit - say 256 [1].

[1]
Advanced Programming in the UNIX Environment, Richard Stevens, p. 52.

Jörg Krause Jörg Krause 2015-07-16

changed src/closefrom.cpp
src/closefrom.cpp Diff Switch to side-by-side view
Loading...