Reputation: 33395
I know I can use setrlimit to limit the resources my program can use, but if my program launches another process, how can I set corresponding limits on that other process?
N.. Yes, I could lower my own (hard) limits and then fork, but being unprivileged, would not be able to put my own limits back up again. This is not a solution.
Upvotes: 1
Views: 1185