3 ms·
There was a previous post from that blog which was not accurate so it’s worth pointing it out. Also setrlimit and getrlimit let you query and set stack size wh
by mrcode007 5y ago
There was a previous post from that blog which was not accurate so it’s worth pointing it out.
Also setrlimit and getrlimit let you query and set stack size which are settable via ulimit utility as well. I don’t want to roll my eyes here but this is some serious FUD.
Here’s my previous response
https://news.ycombinator.com/item?id=28696047 https://news.ycombinator.com/item?id=28696047
- amelius 5y agoThis is about V7 Unix.
- zokier 5y agogetrlimit is POSIX only thing, it's not a standard C feature.
- cat199 5y agoothers have pointed out that this article is talking about v7 unix and so this comment is incorrect - and the so-called 'inaccuracy' you point out in the previous thread was the entire point of the article for that thread - that programmers need to be aware of the stack size and manage it explicitly, and many do not.