diff options
| author | Kees Cook <[email protected]> | 2009-09-22 16:45:32 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-09-23 07:39:40 -0700 |
| commit | cff4edb591c153a779a27a3fd8e7bc1217f2f6b8 (patch) | |
| tree | 664f2a20cd0ae38ef06a2f8cc59e5ffca13e5d8b /fs/proc/array.c | |
| parent | 27f6cb160b71b342b7a47d28a4b6c422ea74ccd1 (diff) | |
proc: fix reported unit for RLIMIT_CPU
/proc/$pid/limits should show RLIMIT_CPU as seconds, which is the unit
used in kernel/posix-cpu-timers.c:
unsigned long psecs = cputime_to_secs(ptime);
...
if (psecs >= sig->rlim[RLIMIT_CPU].rlim_max) {
...
__group_send_sig_info(SIGKILL, SEND_SIG_PRIV, tsk);
Signed-off-by: Kees Cook <[email protected]>
Acked-by: WANG Cong <[email protected]>
Acked-by: Neil Horman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions