xl: remove needless error checking from calls to xl_fork

xl_fork cannot fail - it exits instead.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
This commit is contained in:
Ian Jackson authored and Ian Jackson committed 2014-03-21 14:35:52 +00:00
1 parent 51e18e41e3
commit 7deaedc301
1 file changed
+2 -8
+2 -8
View File
@@ -230,10 +230,7 @@ static void autoconnect_vncviewer(uint32_t domid, int autopass)
vncviewer_child_report();
pid_t pid = xl_fork(child_vncviewer);
if (pid < 0) {
perror("unable to fork vncviewer");
return;
} else if (pid > 0)
if (pid)
return;
postfork();
@@ -2009,10 +2006,7 @@ static void autoconnect_console(libxl_ctx *ctx_ignored,
console_child_report();
pid_t pid = xl_fork(child_console);
if (pid < 0) {
perror("unable to fork xenconsole");
return;
} else if (pid > 0)
if (pid)
return;
postfork();
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.