aboutsummaryrefslogtreecommitdiffstats
path: root/select.c
diff options
context:
space:
mode:
Diffstat (limited to 'select.c')
-rw-r--r--select.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/select.c b/select.c
deleted file mode 100644
index 47351f9..0000000
--- a/select.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <errno.h>
-#include <stdio.h>
-#include <sys/select.h>
-
-volatile unsigned int variable = 0;
-
-int main()
-{
- struct timeval tv;
- int val;
-
- for (;;)
- {
- tv.tv_sec = 1;
- tv.tv_usec = 0;
-
- do
- {
- val = select(0, NULL, NULL, NULL, &tv);
- } while (val != 0 && errno == EINTR);
-
- printf("Variable = %u\n", ++variable);
- }
-}
-