How to change default stack size in linux?

Revision en1, by shashankagrawal, 2020-07-27 22:10:26

We can change stack size in linux temporarily by using the command ulimit -s new_value, But is there any way to change stack size permanently, or Can we do something within C++ code, so it will change stack size by itself?

I tried changing this, but It didn't work. I faced this issue in hackercup qualification round D2, terminal gave segfault, and later I came to know about the low value of default stack size in linux.

Tags #linux, #stacksize


  Rev. Lang. By When Δ Comment
en1 English shashankagrawal 2020-07-27 22:10:26 542 Initial revision (published)