mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
tools: xenconsole: cleanup when clock_gettime fails.
All other error paths in the infinite loop in handle_io use break, so as to free resources. CID: 1351226 Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
e260c1c905
commit
5e403ca3da
1 file changed
+1
-1
@@ -1053,7 +1053,7 @@ void handle_io(void)
|
||||
POLLIN|POLLPRI);
|
||||
|
||||
if (clock_gettime(CLOCK_MONOTONIC, &ts) < 0)
|
||||
return;
|
||||
break;
|
||||
now = ((long long)ts.tv_sec * 1000) + (ts.tv_nsec / 1000000);
|
||||
|
||||
/* Re-calculate any event counter allowances & unblock
|
||||
|
||||