From a354c5c627aabe4a8728570f9631556a7c4c0368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Thu, 20 Apr 2017 11:48:00 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@438 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- utils/system_daemon/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/system_daemon/main.cpp b/utils/system_daemon/main.cpp index ca2d5b43..eec94063 100755 --- a/utils/system_daemon/main.cpp +++ b/utils/system_daemon/main.cpp @@ -335,7 +335,10 @@ int main(int argc, char * argv[]) { args << "-a" << sip; if (!name.isEmpty()) args << "-n" << name; - piCout << "exec in background:" << PISystemInfo::instance()->execCommand << "; with args" << args; + PIProcess p; + p.exec("readlink /proc/self/exe"); + piCout << p.readOutput(); + piCout << "start in background:" << PISystemInfo::instance()->execCommand;// << "; with args" << args; PIProcess::execIndependent(PISystemInfo::instance()->execCommand, args); return 0; }