Support fallback to classic compositor

So that I don't need to keep changing this or worry about bad commits,
support falling back to the classic compositor if the new compositor
doesn't work.
This commit is contained in:
Kevin Lange 2012-11-17 12:59:18 -08:00
parent c5dc55512f
commit dd560bf6e6

View File

@ -84,10 +84,17 @@ void start_compositor() {
int pid = fork();
if (!pid) {
char * tokens[] = {
"/bin/compositor2",
NULL
};
execvp(tokens[0], tokens);
char * _tokens[] = {
"/bin/compositor",
NULL
};
int i = execvp(tokens[0], tokens);
execvp(_tokens[0], _tokens);
exit(0);
} else {
syscall_wait(pid);