Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame^] | 1 | From a2c4cdb05d0e382101b13944c09c4375e8d7de5f Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Tue, 31 Mar 2020 13:39:28 +0200 |
| 4 | Subject: [PATCH] psx.c: replace pthread_yield() with standard sched_yield() |
| 5 | |
| 6 | This was causing failures when building with musl C library in |
| 7 | particular. |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 11 | --- |
| 12 | diff --git a/libcap/psx.c b/libcap/psx.c |
| 13 | index 04d250f..7e4ac10 100644 |
| 14 | --- a/libcap/psx.c |
| 15 | +++ b/libcap/psx.c |
| 16 | @@ -533,7 +533,7 @@ long int __psx_syscall(long int syscall_nr, ...) { |
| 17 | if (!waiting) { |
| 18 | break; |
| 19 | } |
| 20 | - pthread_yield(); |
| 21 | + sched_yield(); |
| 22 | } |
| 23 | |
| 24 | errno = restore_errno; |