]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 7 Feb 2018 02:10:09 +0000 (11:10 +0900)
commit996def17f99bb3f41f82032860dfcb98ff19c3ae
tree0ab762cce8dbb8a08b900569886ea1eafe0b2b2d
parent3f602115b71e8dcbdf34f7193ecf91fc2506daa2
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