My SGI has getrlimit(RLIMIT_STACK) which should do the trick. But maybe this is an sgi-ism? Otherwise RLIMIT_VMEM and subtracting brk() may do the trick. While thinking about this, though, I suddenly realised that my (new, faster) Mac implementation of PyOS_CheckStack will fail miserably in any other than the main thread, something I'll have to fix shortly. Unix code will also have to differentiate between running on the main stack and a sub-thread stack, probably. And I haven't looked at the way PyOS_CheckStack is implemented on Windows, but it may well also share this problem. -- Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++ Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++ www.oratrix.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4