Switch to unified view
a/src/closefrom.cpp | b/src/closefrom.cpp | ||
---|---|---|---|
... |
... |
||
152 | * we retrieve a value from the system. |
152 | * we retrieve a value from the system. |
153 | */ |
153 | */ |
154 | 154 | ||
155 | static int closefrom_maxfd = -1; |
155 | static int closefrom_maxfd = -1; |
156 | 156 | ||
157 | #ifndef OPEN_MAX |
||
158 | #define OPEN_MAX 256 /* Guess */ |
||
159 | #endif |
||
160 | |||
157 | void libclf_setmaxfd(int max) |
161 | void libclf_setmaxfd(int max) |
158 | { |
162 | { |
159 | closefrom_maxfd = max; |
163 | closefrom_maxfd = max; |
160 | } |
164 | } |
161 | 165 |