|
|
|
@ -674,7 +674,7 @@ int main (int argc, char *argv[])
|
|
|
|
|
if (newdisplayint == (MAXIMUM_VTS+1)) {
|
|
|
|
|
writeerror = true;
|
|
|
|
|
systemexec(TRINITY_BIN_PREFIX "kdmctl -g reserve");
|
|
|
|
|
usleep(1000000);
|
|
|
|
|
usleep(3000000);
|
|
|
|
|
}
|
|
|
|
|
if (writeerror)
|
|
|
|
|
have_valid_display = false;
|
|
|
|
@ -685,6 +685,7 @@ int main (int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
// Could not find any existing kdm sessions; start a new one
|
|
|
|
|
systemexec(TRINITY_BIN_PREFIX "kdmctl -g reserve");
|
|
|
|
|
usleep(3000000);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -698,6 +699,7 @@ int main (int argc, char *argv[])
|
|
|
|
|
printf("Unable to write to KDM control socket %s\n\r", (TQString(KDM_CONTROL_FIFO_FILE).tqarg(newdisplayint)).ascii()); fflush(stdout);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
systemexec((TQString(TRINITY_BIN_PREFIX "kdmctl -g activate %1").tqarg(newdisplay)).ascii());
|
|
|
|
|
udisplay=newdisplay;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|