Bug 206741

Summary: [PATCH] libcap 2.33 use sched_yield instead of pthread_yield
Product: Tools Reporter: Adam Schaefers (paxchristi888)
Component: libcapAssignee: Andrew G. Morgan (morgan)
Severity: normal CC: morgan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.5.7 Subsystem:
Regression: No Bisected commit-id:
Attachments: psx.c use sched_yield instead of pthread_yield

Description Adam Schaefers 2020-03-03 06:54:24 UTC
Created attachment 287773 [details]
psx.c use sched_yield instead of pthread_yield


The man page for pthread_yield says to use sched_yield instead, and if you look at glibc implementation, it's just a wrapper around sched_yield (https://sourceware.org/git/?p=glibc.git;a=blob;f=nptl/pthread_yield.c;h=57d103cb388a00a8a0f7c4ce6cccaa83744b2235;hb=HEAD)

This patch allows building 2.33 libcap using other libc's, like musl.

Thank you.

-Adam Schaefers
Comment 1 Adam Schaefers 2020-03-03 07:02:41 UTC
I forgot to mention, the downstream bug report, https://github.com/kisslinux/community/issues/495

Thank you.
Comment 2 Andrew G. Morgan 2020-03-07 18:52:32 UTC


This will be included in the future 2.34 release.