tevent: avoid epoll_check_reopen() overhead unless required
commit3217d5dc1d631d19392576436eb006e52c816a1f
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Apr 2023 12:59:33 +0000 (20 12:59 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 19 Jul 2023 08:02:33 +0000 (19 08:02 +0000)
treed88d92c7d8eb84dc7d2e7e99d91030c923ccc16e
parentd94b9c8124225afd37deae32bf403c19ade1d109
tevent: avoid epoll_check_reopen() overhead unless required

The preparation, function call and cleanup for epoll_check_reopen()
is quite some overhead and not needed most of the time!

So check the pid in the caller avoids most of it.

Review with: git show -w

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/tevent/tevent_epoll.c