summaryrefslogtreecommitdiff
path: root/source3/lib/messages_ctdb.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2022-07-25 14:29:35 +0200
committerJeremy Allison <jra@samba.org>2022-07-25 17:34:33 +0000
commit94e130fb866d4b7bdbeacb4152093d827d5eb2bb (patch)
treee977f6630c2db0e472a596cc4a459c1cb51aa7c0 /source3/lib/messages_ctdb.c
parentbcfb257bbf99a6b709dacdf22da6a0e190742a90 (diff)
downloadsamba-94e130fb866d4b7bdbeacb4152093d827d5eb2bb.tar.gz
s3:lib/messages*: s/getpid/tevent_cached_getpid
Our messaging code is very performance critical and we should note waste time in getpid() syscalls... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib/messages_ctdb.c')
-rw-r--r--source3/lib/messages_ctdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/messages_ctdb.c b/source3/lib/messages_ctdb.c
index d3e2e3f8589..3e784bf7237 100644
--- a/source3/lib/messages_ctdb.c
+++ b/source3/lib/messages_ctdb.c
@@ -104,7 +104,7 @@ int messaging_ctdb_init(const char *sockname, int timeout, uint64_t unique_id,
goto fail;
}
- ret = register_with_ctdbd(ctx->conn, getpid(), messaging_ctdb_recv,
+ ret = register_with_ctdbd(ctx->conn, tevent_cached_getpid(), messaging_ctdb_recv,
ctx);
if (ret != 0) {
DBG_DEBUG("register_with_ctdbd returned %s (%d)\n",