projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added 'polling' option to options.conf.
[lcr.git]
/
main.c
diff --git
a/main.c
b/main.c
index
9d7f834
..
e2d3f13
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-460,7
+460,11
@@
int main(int argc, char *argv[])
usleep(10000);
}
#else
usleep(10000);
}
#else
- select_main(0, NULL, NULL, NULL);
+ if (options.polling)
+ if (!select_main(1, NULL, NULL, NULL))
+ usleep(10000);
+ else
+ select_main(0, NULL, NULL, NULL);
#endif
}
SPRINT(tracetext, "%s terminated", NAME);
#endif
}
SPRINT(tracetext, "%s terminated", NAME);