]> git.ipfire.org Git - thirdparty/man-pages.git/commit
prctl.2: Correct some details for PR_SET_TIMERSLACK
authorYang Xu <xuyang2018.jy@cn.fujitsu.com>
Wed, 24 Jul 2019 06:52:23 +0000 (14:52 +0800)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 30 Jul 2019 06:25:37 +0000 (08:25 +0200)
commitc14f79303f2885f7f4f4bf0d63922551b520a4b8
tree231e701dc25bb51fce44cc22fac807ebfdf78bf2
parent2f368cc32812c3edbe205c36e1c111e7ab7d36ea
prctl.2: Correct some details for PR_SET_TIMERSLACK

In kernel/sys.c, arg2 is an unsigned long value and it will never
less than 0. Also, since kernel commit id da8b44d5a9f8 (Linux
4.6), timer_slack_ns and default timer_slack_ns have been
converted into u64, the return value of PR_GET_TIMERSLACK has been
limited under ULONG_MAX.

The timer slack value also can be inherited by a child created via
fork(2).

Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/prctl.2