Make live-welcome launch glogin instead of rebooting
This commit is contained in:
parent
7812847fb4
commit
4e455de6e4
@ -36,6 +36,11 @@ int main(int argc, char * argv[]) {
|
||||
pid = wait(NULL);
|
||||
} while ((pid > 0 && pid != _session_pid) || (pid == -1 && errno == EINTR));
|
||||
|
||||
char * args[] = {"/bin/glogin",NULL};
|
||||
execvp(args[0],args);
|
||||
|
||||
TRACE("failed to start glogin after log out, trying to reboot instead.");
|
||||
system("reboot");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user