Fixing bugs in communication.

- The reporter can't be used from the child process.

- Don't attempt to send a zero-sized chunk when remote print buffer is
  empty.
This commit is contained in:
Robin Sommer 2011-07-01 18:49:15 -07:00
parent b520f98541
commit 4580bef3e6
4 changed files with 29 additions and 16 deletions

View file

@ -463,6 +463,9 @@ protected:
// Check whether everything has been sent out.
void CheckFinished();
// Reports the error and terminates the process.
void InternalError(const char* msg);
// Communication helpers.
bool SendToParent(char type, Peer* peer, const char* str, int len = -1);
bool SendToParent(char type, Peer* peer, int nargs, ...); // can send uints32 only