projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
065fb0f
)
Use usleep() instead of sleep().
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 14 Jan 2011 20:22:02 +0000
(21:22 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 14 Jan 2011 20:22:02 +0000
(21:22 +0100)
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index b34ff3803af01d79e29006ee143fcddeb09ad725..39b467df7bccf11ed79a36e1998cf485b90881a2 100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-368,7
+368,7
@@
int main_loop(void) {
#endif
while(true) {
-
sleep(1
);
+
usleep(1000
);
struct event *event;
while((event = get_expired_event())) {
event->handler(event->data);