Skip to content

Commit

Permalink
add comment explaining how to get RLIMIT_NOFILE
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
  • Loading branch information
lorban committed Aug 25, 2023
1 parent 4a30d42 commit a9dd96f
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ public interface LibC extends Library

int setrlimit(int resource, RLimit rlimit);

/**
* Compile and run the following C program to get the <code>RLIMIT_NOFILE</code> value of you OS of choice.
* <pre>
* #include <stdio.h>
* #include <sys/resource.h>
*
* int main()
* {
* printf("RLIMIT_NOFILE = %d\n", RLIMIT_NOFILE);
* return 0;
* }
* </pre>
*/
class Constants
{
public static final int RLIMIT_NOFILE;
Expand Down

0 comments on commit a9dd96f

Please sign in to comment.