aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/desktop-utils/lumina-archiver/imgDialog.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-archiver/imgDialog.cpp b/src-qt5/desktop-utils/lumina-archiver/imgDialog.cpp
index 13268a73..3c330479 100644
--- a/src-qt5/desktop-utils/lumina-archiver/imgDialog.cpp
+++ b/src-qt5/desktop-utils/lumina-archiver/imgDialog.cpp
@@ -133,8 +133,12 @@ void imgDialog::getProcStatus(){
if(pidlist.isEmpty()){ return; }
int pid = pidlist.first().simplified().toInt(); //just use the first pid - the pgrep should be detailed enough to only match one
//qDebug() << "Sending signal to show status on PID:" << pid;
- if(BSD_signal){ ::kill(pid, SIGINFO); } //On BSD systems, the INFO signal is used to poke dd for status updates
- else{ ::kill(pid, SIGUSR1); } //On linux systems, the USR1 signal is used to poke dd for status updates
+#ifndef __Linux__
+ ::kill(pid, SIGINFO); //On BSD systems, the INFO signal is used to poke dd for status updates
+#else
+ //LINUX systems do not even have a SIGINFO defined - need to block this off with defines...
+ ::kill(pid, SIGUSR1); //On linux systems, the USR1 signal is used to poke dd for status updates
+#endif
//Now update the elapsed time on the UI
int elapsed = startTime.secsTo( QDateTime::currentDateTime() );
int min = elapsed/60;
bgstack15