aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-03-29 16:16:01 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-03-29 16:16:01 -0700
commit2aa1f6b1381611a3f73c7a1db61a629aa2e28324 (patch)
treeafe090b57385ae2b1d46a4c49f406603ab3a29a7 /example
parent0db5bc69ea511eb1009f68775209ae8b58d6c553 (diff)
Added test_fsel
Diffstat (limited to 'example')
-rwxr-xr-xexample/fselclient.c4
1 files changed, 2 insertions, 2 deletions
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;