fnet.c

Simple C networking library
git clone git://git.finwo.net/lib/fnet.c
Log | Files | Refs | README

commit f83424bcd74386bc255a08ebb79c4f6087e11c2f
parent 4db4f1cd57623a0b052f23e6f9ea56a0423db5ce
Author: Yersa Nordman <yersa@finwo.nl>
Date:   Thu, 16 Nov 2023 23:26:48 +0100

Include event count from epoll

Diffstat:
Msrc/fnet.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/fnet.c b/src/fnet.c @@ -723,6 +723,9 @@ FNET_RETURNCODE fnet_main() { // Do the actual processing if (epfd) { ev_count = epoll_wait(epfd, events, 8, tdiff); + if (ev_count) { + printf("New events: %d\n", ev_count); + } for( i = 0 ; i < ev_count ; i++ ) { ret = fnet_process((struct fnet_t *)events[i].data.ptr); if (ret) return ret;