]> git.ipfire.org Git - thirdparty/systemd.git/commit
missing_syscall: drop raw_getpid() 36609/head
authorMike Yuan <me@yhndnzj.com>
Tue, 4 Mar 2025 17:49:04 +0000 (18:49 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 4 Mar 2025 22:03:24 +0000 (23:03 +0100)
commit33db9f214b1b21cb9550ff0c4fc5ad7904f9ebcc
tree459066a4476c5594bd915efeb2b9a4cb0611dd92
parentc133fcd5c0ebaf72bfea12f165c3b727a0fb5ffb
missing_syscall: drop raw_getpid()

This used to be relevant since in old versions of glibc an internal
cache is maintained, while we might sidestep their invalidation
with raw_clone(). After glibc 2.25 getpid() is a trivial wrapper
for the syscall, and hence there's no need to have a separate
raw_getpid().
src/basic/missing_syscall.h
src/basic/process-util.c
src/basic/signal-util.c
src/test/test-process-util.c
src/test/test-raw-clone.c