git-svn-id: svn://db.shs.com.ru/pip@403 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-04-19 13:58:30 +00:00
parent d1a33a841d
commit d0f570c929
2 changed files with 5 additions and 3 deletions

View File

@@ -703,7 +703,7 @@ bool PIPeer::sendToNeighbour(PIPeer::PeerInfo * peer, const PIByteArray & ba) {
void PIPeer::sendMBcast(const PIByteArray & ba) {
send_mc_mutex.lock();
// piCout << "sendMBcast" << ba.size() << "bytes ...";
piCoutObj << "sendMBcast" << ba.size() << "bytes ...";
piForeach (PIEthernet * e, eths_mcast) {
//errorClear();
//piCout << "send to" << e->path() << e->sendAddress();// << e->send(ba);
@@ -735,7 +735,7 @@ void PIPeer::sendMBcast(const PIByteArray & ba) {
if (eth_tcp_cli.send(ba))
diag_s.sended(ba.size_s());
}
// piCout << "send muticast ok";
piCoutObj << "sendMBcast ok";
send_mc_mutex.unlock();
}

View File

@@ -145,7 +145,9 @@ void PIProcess::startProc(bool detached) {
if (g_out) tf_out = freopen(f_out.path().data(), "w", stdout);
if (g_err) tf_err = freopen(f_err.path().data(), "w", stderr);
#ifndef WINDOWS
if (!wd.isEmpty()) chdir(wd.data());
if (!wd.isEmpty())
if (!chdir(wd.data()))
piCoutObj << "Error while set working directory";
#endif
#ifdef WINDOWS
GetStartupInfoA(&(PRIVATE->si));