diff --git a/update.cpp b/update.cpp index 92865fd..66d9770 100644 --- a/update.cpp +++ b/update.cpp @@ -14,9 +14,9 @@ #include #include -//#include -//#include -//#include +#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