From 791fa9fa3f9386f9c908fe595773c0274b6c94b9 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 12:00:21 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@442 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/system/piprocess.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src_main/system/piprocess.cpp b/src_main/system/piprocess.cpp index 20ac7718..705b51a7 100755 --- a/src_main/system/piprocess.cpp +++ b/src_main/system/piprocess.cpp @@ -172,15 +172,16 @@ void PIProcess::startProc(bool detached) { #else //cout << "exec " << tf_in << ", " << tf_out << ", " << tf_err << endl; -// PIStringList clsl; -// char * a_ = a[0]; -// int ai_ = 0; -// while (a_) { -// piCoutObj << "a_" << PIString(a_); -// clsl << PIString(a_); -// ai_++; -// a_ = a[ai_]; -// } + PIStringList clsl; + char * a_ = e[0]; + int ai_ = 0; + while (a_) { + piCoutObj << "a_" << PIString(a_); + clsl << PIString(a_); + ai_++; + a_ = e[ai_]; + } + piCoutObj << clsl; if (execve(str.data(), a, e) < 0) piCoutObj << "\"execve" << str << args << "\" error :" << errorString(); } else {