force STDOUT buffer flush on newline

This commit is contained in:
Stephen Birarda 2013-03-13 13:30:45 -07:00
parent 99e21be12c
commit 9167c8e038
3 changed files with 6 additions and 0 deletions

View file

@ -53,6 +53,8 @@ unsigned char * addAgentToBroadcastPacket(unsigned char *currentPosition, Agent
int main(int argc, const char * argv[])
{
setvbuf(stdout, NULL, _IOLBF, 0);
ssize_t receivedBytes = 0;
char agentType;

View file

@ -123,6 +123,8 @@ bool loadSpaceData(void) {
int main (int argc, const char *argv[]) {
setvbuf(stdout, NULL, _IOLBF, 0);
unsigned char packetData[PACKET_LENGTH_BYTES];
ssize_t receivedBytes = 0;

View file

@ -68,6 +68,8 @@ void *reportAliveToDS(void *args) {
int main(int argc, const char * argv[])
{
setvbuf(stdout, NULL, _IOLBF, 0);
// get the local address of the voxel server
struct ifaddrs * ifAddrStruct=NULL;
struct ifaddrs * ifa=NULL;