1 /* This is just a quick test program to see how long a wait is
2 * produced by a select loop with an exponential backoff.
4 * gcc -g -O2 -o test_select test_select.c
21 while ((waittime > 0) && (waittime < 3000000)) {
22 printf("%d\n", waittime);
23 tv.tv_sec = waittime/1000000;
24 tv.tv_usec = waittime%1000000;
26 srv = select(0, NULL, NULL, NULL, &tv);