X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=kernel%2Ftimer.c;h=40a9680fe6446f8f9c8bce6022aa5eb5fa55a81f;hb=73c4d347a0c98eb6599aefd1f9a91b4b071dd5e0;hp=f7d42e8ec28d8f32b369cfd0257e43cc2179dc18;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/kernel/timer.c b/kernel/timer.c index f7d42e8ec..40a9680fe 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -795,12 +795,12 @@ static inline void do_process_times(struct task_struct *p, psecs = (p->utime += user); psecs += (p->stime += system); - if (psecs / HZ >= p->rlim[RLIMIT_CPU].rlim_cur) { + if (psecs / HZ > p->rlim[RLIMIT_CPU].rlim_cur) { /* Send SIGXCPU every second.. */ if (!(psecs % HZ)) send_sig(SIGXCPU, p, 1); /* and SIGKILL when we go over max.. */ - if (psecs / HZ >= p->rlim[RLIMIT_CPU].rlim_max) + if (psecs / HZ > p->rlim[RLIMIT_CPU].rlim_max) send_sig(SIGKILL, p, 1); } }