]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
tools: xenconsole: cleanup when clock_gettime fails.
authorIan Campbell <ian.campbell@citrix.com>
Wed, 3 Feb 2016 10:43:47 +0000 (10:43 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 3 Feb 2016 11:22:45 +0000 (11:22 +0000)
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>
tools/console/daemon/io.c

index e2e7a6b242399a7722eb685dcd37d89d0f90f630..34666c43ab5697798f7d6cae88137b5bc71ce36e 100644 (file)
@@ -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