diff options
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r-- | src/fbgui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp index 45524eb..1039ad6 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -434,9 +434,9 @@ void fbgui::prepareKexec() { * */ void fbgui::runKexec() { - QProcess process; - process.startDetached("kexec -e"); - if (!process.waitForStarted()) { + QProcess *process = new QProcess(this); + process->start("kexec -e"); + if (!process->waitForStarted()) { qxtLog->debug() << "[gui] Failed to execute: kexec -e"; qxtLog->debug() << "[gui] Exiting in 5 seconds..."; QTimer::singleShot(5000, this, SLOT(close())); |