Added some debug output for parent-process-name
This commit is contained in:
parent
a03261d04a
commit
17a4a69df2
@ -14,9 +14,9 @@
|
|||||||
#include <QRegExp>
|
#include <QRegExp>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
//#include <iostream>
|
#if defined (Q_OS_UNIX) || defined (Q_OS_LINUX)
|
||||||
//#include <fstream>
|
#include "unistd.h"
|
||||||
//#include <ctime>
|
#endif
|
||||||
|
|
||||||
#include "plugins/interfaces.h"
|
#include "plugins/interfaces.h"
|
||||||
|
|
||||||
@ -742,6 +742,9 @@ bool Update::doUpdate(int &displayIndex, QStringList const &filesToWorkOn) {
|
|||||||
|
|
||||||
QString const &parentName = Utils::getParentName();
|
QString const &parentName = Utils::getParentName();
|
||||||
|
|
||||||
|
Utils::printInfoMsg(
|
||||||
|
QString("PARENT OF ATB-UPDATE-TOOL (ppid=%1) ").arg(getppid()) + parentName);
|
||||||
|
|
||||||
if (parentName == "ATBQT" || parentName == "systemd") {
|
if (parentName == "ATBQT" || parentName == "systemd") {
|
||||||
// the tool was not called during 'service' ot during an automatic
|
// the tool was not called during 'service' ot during an automatic
|
||||||
// update procedure. and it was called explicitly with libCAmaster.so
|
// update procedure. and it was called explicitly with libCAmaster.so
|
||||||
|
Loading…
Reference in New Issue
Block a user