commit | ce72a16fa705f960ca2352e95a7c5f4801475e75 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun May 14 20:25:02 2017 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sun May 21 13:11:00 2017 -0400 |
tree | 6dcdf27d851b4c9e50f689611a26f1dfc10ebef0 | |
parent | 7e95a225901a5d2fd140f14b4302805cecc22da7 [diff] |
wait4(2)/waitid(2): separate copying rusage to userland New helpers: kernel_waitid() and kernel_wait4(). sys_waitid(), sys_wait4() and their compat variants switched to those. Copying struct rusage to userland is left to syscall itself. For compat_sys_wait4() that eliminates the use of set_fs() completely. For compat_sys_waitid() it's still needed (for siginfo handling); that will change shortly. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>