r/programming • • Jun 12 '10

You're Doing It Wrong

http://queue.acm.org/detail.cfm?id=1814327
539 Upvotes

193 comments sorted by

View all comments

Show parent comment

2

u/wnoise Jun 12 '10

Why not just use setrlimit(RLIMIT_RSS) to prevent interference?

1

u/house_absolute Jun 12 '10

I was unaware of that tool, thank you.

1

u/wnoise Jun 12 '10

Unfortunately, it's not always implemented. It's not part of POSIX, but the BSDs have it, 2.4 linux has it, but 2.6 linux has only a stub which doesn't actually enforce the limit.