mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xl: call libxl_vncviewer_exec in main_vncviewer
We will need to move main_vncviewer to a different file where it has no access to the helper vncviewer. Call libxl_vncviewer_exec directly. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
a209f02c6b
commit
78c03bebb3
1 file changed
+4
-3
@@ -1120,9 +1120,10 @@ int main_vncviewer(int argc, char **argv)
|
||||
|
||||
domid = find_domain(argv[optind]);
|
||||
|
||||
if (vncviewer(domid, autopass))
|
||||
return EXIT_FAILURE;
|
||||
return EXIT_SUCCESS;
|
||||
libxl_vncviewer_exec(ctx, domid, autopass);
|
||||
fprintf(stderr, "Unable to execute vncviewer\n");
|
||||
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
static void pause_domain(uint32_t domid)
|
||||
|
||||