Skip to content

Commit

Permalink
Increase open file limit
Browse files Browse the repository at this point in the history
  • Loading branch information
hexfoureight authored Oct 16, 2024
1 parent 9aea964 commit e8c3b20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ int main (int argc, char **argv) {
int target_sock;
int optval = 1;

struct rlimit rlim = { 4096, 4096 };
if (setrlimit(RLIMIT_NOFILE, &rlim) == -1)
err_exit("[-] setrlimit");

pin_cpu();
set_attr();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ int main (int argc, char **argv) {
int target_sock;
int optval = 1;

struct rlimit rlim = { 4096, 4096 };
if (setrlimit(RLIMIT_NOFILE, &rlim) == -1)
err_exit("[-] setrlimit");

pin_cpu();
set_attr();

Expand Down

0 comments on commit e8c3b20

Please sign in to comment.