summaryrefslogtreecommitdiff
path: root/libnsl
diff options
context:
space:
mode:
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>2016-07-29 12:17:20 +0300
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-31 12:50:54 +0200
commit334ddb1b8fe5d4b473a9e410b882952f2075b417 (patch)
treea7710e67cd2314bf13d943aa5244e2f69e05ce87 /libnsl
parentb2c2bbcc8ccd0d0b281db653d22e568b8871ad46 (diff)
arc: clone: Simplify CLONE_THREAD detection
This change was inspired by similar change in glibc: https://sourceware.org/git/?p=glibc.git;a=commit;h=0cb313f7cb0e418b3d56f3a2ac69790522ab825d Current Linux kernel requires CLONE_VM to be set with CLONE_THREAD otherwise returning -EINVAL, see man clone2. This means we don't need to check for both CLONE_THREAD and CLONE_VM instead we may simplify code a lot and just check 1 bit (CLONE_THREAD). Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Acked-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'libnsl')
0 files changed, 0 insertions, 0 deletions