From 2aa1f6b1381611a3f73c7a1db61a629aa2e28324 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Tue, 29 Mar 2016 16:16:01 -0700 Subject: Added test_fsel --- example/fselclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/fselclient.c b/example/fselclient.c index ac8b7b0..637cb07 100755 --- a/example/fselclient.c +++ b/example/fselclient.c @@ -40,7 +40,7 @@ int main(void) { static const char hex_map[FSEL_FILES] = "0123456789ABCDEF"; int fds[FSEL_FILES]; - int i, nfds; + int i, nfds, tries; for (i = 0; i < FSEL_FILES; i++) { char name[] = { hex_map[i], '\0' }; @@ -52,7 +52,7 @@ int main(void) } nfds = fds[FSEL_FILES - 1] + 1; - while (1) { + for(tries=0; tries < 16; tries++) { static char buf[4096]; fd_set rfds; int rc; -- cgit v1.2.3