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:
emellor@leeni.uk.xensource.com committed 2005-12-07 11:47:46 +00:00
1 parent 2fd63647b4
commit 497ff155b3
1 file changed
+1 -2
+1 -2
View File
@@ -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));
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.