Functions related to currently running or manually spawned processes
Static methods
staticgetFileResourceLimit():UInt
Returns the current file resource limit on supported operating systems.
Returns:
UInt
staticisUserRoot():Bool
Checks if the current user that has spawned this process has root/admin privileges
Returns:
Bool
staticsetFileResourceLimit(limit:UInt):Bool
Sets the File Handle Resource Limit for the given process on supported operating systems.(sub-processes are not affected). On certain systems and environments the default file handle limit is ~256, which might be too low in specific cases. Use this function only if there's a certain need to have a large number of file handles simultaneously. If you set this value too low, your application might crash. Note: Sockets are also using file handles.
Parameters:
limit | The number of allowed file handles |
---|
Returns:
Returns true if the operation was successful, false otherwise