aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorAndrew Morton <[email protected]>2006-03-24 03:18:35 -0800
committerLinus Torvalds <[email protected]>2006-03-24 07:33:30 -0800
commite0661111e5441995f7a69dc4336c9f131cb9bc58 (patch)
tree47a0a0ae66a9f792e6c9edbf683cdc0b62a2d4b7 /net/lapb/lapb_subr.c
parentec9e16bacdba1da1ee15dd162384e22df5c87e09 (diff)
[PATCH] RLIMIT_CPU: fix handling of a zero limit
At present the kernel doesn't honour an attempt to set RLIMIT_CPU to zero seconds. But the spec says it should, and that's what 2.4.x does. Fixing this for real would involve some complexity (such as adding a new it-has-been-set flag to the task_struct, and testing that everwhere, instead of overloading the value of it_prof_expires). Given that a 2.4 kernel won't actually send the signal until one second has expired anyway, let's just handle this case by treating the caller's zero-seconds as one second. Cc: Martin Schwidefsky <[email protected]> Cc: Ulrich Weigand <[email protected]> Cc: Cliff Wickman <[email protected]> Acked-by: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions