mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Remove timeout on select -- there is no need for it, since we don't do anything
in the main loop except service I/O. Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
2fd63647b4
commit
497ff155b3
1 file changed
+1
-2
@@ -545,7 +545,6 @@ void handle_io(void)
|
||||
|
||||
do {
|
||||
struct domain *d, *n;
|
||||
struct timeval tv = { 100, 0 };
|
||||
int max_fd = -1;
|
||||
|
||||
FD_ZERO(&readfds);
|
||||
@@ -570,7 +569,7 @@ void handle_io(void)
|
||||
}
|
||||
}
|
||||
|
||||
ret = select(max_fd + 1, &readfds, &writefds, 0, &tv);
|
||||
ret = select(max_fd + 1, &readfds, &writefds, 0, NULL);
|
||||
|
||||
if (FD_ISSET(xs_fileno(xs), &readfds))
|
||||
handle_xs(xs_fileno(xs));
|
||||
|
||||