libxl__exec() doesn't ever return. Inform the compiler of this, and
remove all dead code.
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
}
libxl__exec(gc, autopass_fd, -1, -1, args[0], args, NULL);
- abort();
x_fail:
GC_FREE;
/* child */
libxl__exec(gc, aes->stdfds[0], aes->stdfds[1],
aes->stdfds[2], args[0], args, aes->env);
- /* notreached */
- abort();
}
return 0;
r = login_tty(libxl__carefd_fd(bl->ptys[0].slave));
if (r) { LOGE(ERROR, "login_tty failed"); exit(-1); }
libxl__exec(gc, -1, -1, -1, bl->args[0], (char **) bl->args, env);
- exit(-1);
}
/* parent */
*/
_hidden void libxl__exec(libxl__gc *gc, int stdinfd, int stdoutfd,
int stderrfd, const char *arg0, char *const args[],
- char *const env[]);
+ char *const env[]) __attribute__((noreturn));
/* from xl_create */