s3:lib/messages*: s/getpid/tevent_cached_getpid
authorStefan Metzmacher <metze@samba.org>
Mon, 25 Jul 2022 12:29:35 +0000 (14:29 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 25 Jul 2022 17:34:33 +0000 (17:34 +0000)
commit94e130fb866d4b7bdbeacb4152093d827d5eb2bb
treee977f6630c2db0e472a596cc4a459c1cb51aa7c0
parentbcfb257bbf99a6b709dacdf22da6a0e190742a90
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>
source3/lib/messages.c
source3/lib/messages_ctdb.c
source3/lib/messages_ctdb_ref.c