Skip to content

Commit

Permalink
Wait for display setup script no more than 30s
Browse files Browse the repository at this point in the history
Kill the script if it takes long.
  • Loading branch information
plfiorini committed Jun 24, 2015
1 parent 7ed4ab1 commit f083c1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/daemon/XorgDisplayServer.cpp
Expand Up @@ -290,7 +290,10 @@ namespace SDDM {
// start display setup script
qDebug() << "Running display setup script " << displayCommand;
displayScript->start(displayCommand);
displayScript->waitForFinished(-1);

// wait for finished
if (!displayScript->waitForFinished(30000))
displayScript->kill();
}

void XorgDisplayServer::changeOwner(const QString &fileName) {
Expand Down

0 comments on commit f083c1e

Please sign in to comment.