git-svn-id: svn://db.shs.com.ru/pip@403 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user