lib/messaging: s/getpid/tevent_cached_getpid
commitbcfb257bbf99a6b709dacdf22da6a0e190742a90
authorStefan Metzmacher <metze@samba.org>
Mon, 25 Jul 2022 12:29:35 +0000 (25 14:29 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 25 Jul 2022 17:34:33 +0000 (25 17:34 +0000)
tree68e27341e7923d1f643319ce99fba65067ae5a53
parent63d4db63feda920c8020f8484a8b31065b7f1380
lib/messaging: 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>
lib/messaging/messages_dgm.c
lib/messaging/messages_dgm_ref.c