OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
unlimit_stack.cpp File Reference
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>

Go to the source code of this file.

Functions

void set_stack_unlimited ()

Function Documentation

◆ set_stack_unlimited()

void set_stack_unlimited ( )

Definition at line 28 of file unlimit_stack.cpp.

28 {
29 struct rlimit rl;
30 rl.rlim_cur = RLIM_INFINITY;
31 rl.rlim_max = RLIM_INFINITY;
32 setrlimit(RLIMIT_STACK, &rl);
33 }