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:58:49 +0000 (07:58 +0200)
commita542223174033e5b653cb0709885fc281277e56f
treef9d7a449197c9072cd6d87515ede8d97b3adbfb8
parent19686d37773d4a527d7464cb6af89aaf676e5f6d
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
src/basic/process-util.c