tree-wide: getpid() → getpid_cached()

This doesn't really matter, but let's be systematic and prefer
getpid_cached() in our codebase.
This commit is contained in:
Lennart Poettering
2023-06-22 17:07:59 -06:00
committed by Zbigniew Jędrzejewski-Szmek
parent 742aebc5a7
commit 19b761a097
6 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -26,6 +26,7 @@
#include "missing_syscall.h"
#include "missing_threads.h"
#include "parse-util.h"
#include "process-util.h"
#include "random-util.h"
#include "sha256.h"
#include "time-util.h"
@@ -48,7 +49,7 @@ static void fallback_random_bytes(void *p, size_t n) {
.call_id = fallback_counter++,
.stamp_mono = now(CLOCK_MONOTONIC),
.stamp_real = now(CLOCK_REALTIME),
.pid = getpid(),
.pid = getpid_cached(),
.tid = gettid(),
};