chiark / gitweb /
process-util: use raw_getpid() in getpid_cache() internally (#8115)
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Feb 2018 02:10:09 +0000 (03:10 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:53:59 +0000 (07:53 +0200)
commit654539402a79b3341584f4694da4b08b8ce35458
treeb63bae2fc6760ed43f20be69113e2bd80af18d96
parent34e3453d337962906b7f3bbe6285b26ae6600173
process-util: use raw_getpid() in getpid_cache() internally (#8115)

We have the raw_getpid() definition in place anyway, and it's certainly
beneficial to expose the same semantics on pre glibc 2.24 and after it
too, hence always bypass glibc for this, and always cache things on our
side.

Fixes: #8113
(cherry picked from commit 996def17f99bb3f41f82032860dfcb98ff19c3ae)
src/basic/process-util.c