fix ESRCH error handling for clock_getcpuclockid
authorEugene Yudin <e.yudin@ndmsystems.com>
Mon, 1 Aug 2022 17:53:22 +0000 (13:53 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 1 Aug 2022 17:53:22 +0000 (13:53 -0400)
commitbaaf257f05b96816c24951e7b6721d72922949e5
tree8f42f7af09a3c6f40176940bccbfe6d6579d1b81
parent4f48da008d1fb3ccab2ad76523c104aa3fa8d8b6
fix ESRCH error handling for clock_getcpuclockid

the syscall used to probe availability of the clock fails with EINVAL
when the requested pid does not exist, but clock_getcpuclockid is
specified to use ESRCH for this purpose.
src/time/clock_getcpuclockid.c