Added some debug output for parent-process-name

This commit is contained in:
Gerhard Hoffmann 2023-09-11 10:14:04 +02:00
parent a03261d04a
commit 17a4a69df2

View File

@ -14,9 +14,9 @@
#include <QRegExp>
#include <QApplication>
//#include <iostream>
//#include <fstream>
//#include <ctime>
#if defined (Q_OS_UNIX) || defined (Q_OS_LINUX)
#include "unistd.h"
#endif
#include "plugins/interfaces.h"
@ -742,6 +742,9 @@ bool Update::doUpdate(int &displayIndex, QStringList const &filesToWorkOn) {
QString const &parentName = Utils::getParentName();
Utils::printInfoMsg(
QString("PARENT OF ATB-UPDATE-TOOL (ppid=%1) ").arg(getppid()) + parentName);
if (parentName == "ATBQT" || parentName == "systemd") {
// the tool was not called during 'service' ot during an automatic
// update procedure. and it was called explicitly with libCAmaster.so