process: api to set file descriptor soft limit

This commit is contained in:
Robo 2015-08-29 20:44:52 +05:30
parent 0f2ef3feb2
commit af52eda0eb
3 changed files with 11 additions and 1 deletions

View file

@ -11,3 +11,10 @@ upstream node:
## process.hang
Causes the main thread of the current process hang.
## process.setFdLimit(maxDescriptors) _OS X_ _Linux_
* `maxDescriptors` Integer
Sets the file descriptor soft limit to `maxDescriptors` or the OS hard
limit, whichever is lower for the current process.