public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] sys_setrlimit() in 2.6.16
@ 2006-02-14 22:24 Cliff Wickman
  2006-02-16  8:58 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Cliff Wickman @ 2006-02-14 22:24 UTC (permalink / raw)
  To: linux-kernel

A test suite uncovered a possible bug in setrlimit(2), in 2.6.16-rc3.

A code that does
        mylimits.rlim_cur = 0;
        setrlimit(RLIMIT_CPU, &mylimits);
does not set a cpu time limit.

No signal is sent to this code when its "limit" of 0 seconds expires.
Whereas, under the 2.6.5 kernel (SuSE SLESS9) a signal was sent.

I don't see any obvious difference in sys_setrlimit() or
set_process_cpu_timer() between 2.6.5 and 2.6.16.

Is this a correction, or a bug?

Is a cpu time limit of 0 supposed to limit a task to 0 seconds, or
leave it unlimited?

-- 
Cliff Wickman
Silicon Graphics, Inc.
cpw@sgi.com
(651) 683-3824

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-16  9:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-14 22:24 [RFC] sys_setrlimit() in 2.6.16 Cliff Wickman
2006-02-16  8:58 ` Andrew Morton
2006-02-16  9:47   ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox