force STDOUT buffer flush on newline

This commit is contained in:
Stephen Birarda 2013-03-13 13:27:51 -07:00
parent 012b4a92fd
commit 87a2900bae

View file

@ -252,6 +252,8 @@ void attachNewBufferToAgent(Agent *newAgent) {
int main(int argc, const char * argv[])
{
setvbuf(stdout, NULL, _IOLBF, 0);
ssize_t receivedBytes = 0;
agentList.linkedDataCreateCallback = attachNewBufferToAgent;