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:
committed by
Zbigniew Jędrzejewski-Szmek
parent
742aebc5a7
commit
19b761a097
@@ -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(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user