Re: setrlimit() extension suggestion
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Mon, 21 Apr 2008 04:58:53 -0700 (PDT)
On Apr 20, 10:43 pm, phil-news-nos...@xxxxxxxx wrote:
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.
I can't think of a use for it.
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.
I don't see how that would be useful. You would face an insoluable
"three bears" problem. Minutes are too low for long-lived working
processes, but seconds are too long for fork bombs.
If that's the job, the proposed RLIMIT_TIME is the wrong tool.
DS
.
- Follow-Ups:
- Re: setrlimit() extension suggestion
- From: phil-news-nospam
- Re: setrlimit() extension suggestion
- References:
- setrlimit() extension suggestion
- From: phil-news-nospam
- setrlimit() extension suggestion
- Prev by Date: Re: creating process
- Next by Date: Netlink sockets problem in Fedora Core 8 2.6.23.1-42 Kernel
- Previous by thread: setrlimit() extension suggestion
- Next by thread: Re: setrlimit() extension suggestion
- Index(es):
Relevant Pages
|