setrlimit() extension suggestion



I'd like to suggest an extension to setrlimit() and getrlimit(). The resource
symbol would be RLIMIT_TIME (or RLIMIT_LINUX_TIME to designate an extension in
case a future POSIX change uses RLIMIT_TIME in an incompatible way). What it
should do is set a limit on "wallclock" time.

Is that something the kernel could do? It can already do RLIMIT_CPU but that
is not exactly the same.

Unreliable means exist now. One of them is a parent process that keeps time
and kills the child. But a child could "run away" fairly easily (fork and
change process group). A hard RLIMIT_TIME would be inescapable.

Discussion?

--
|WARNING: Due to extreme spam, I no longer see any articles originating from |
| Google Groups. If you want your postings to be seen by more readers |
| you will need to find a different place to post on Usenet. |
| Phil Howard KA9WGN (email for humans: first name in lower case at ipal.net) |
.



Relevant Pages