mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:41:20 +02:00
force STDOUT buffer flush on newline
This commit is contained in:
parent
99e21be12c
commit
9167c8e038
3 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,8 @@ unsigned char * addAgentToBroadcastPacket(unsigned char *currentPosition, Agent
|
||||||
|
|
||||||
int main(int argc, const char * argv[])
|
int main(int argc, const char * argv[])
|
||||||
{
|
{
|
||||||
|
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||||
|
|
||||||
ssize_t receivedBytes = 0;
|
ssize_t receivedBytes = 0;
|
||||||
char agentType;
|
char agentType;
|
||||||
|
|
||||||
|
|
|
@ -123,6 +123,8 @@ bool loadSpaceData(void) {
|
||||||
|
|
||||||
int main (int argc, const char *argv[]) {
|
int main (int argc, const char *argv[]) {
|
||||||
|
|
||||||
|
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||||
|
|
||||||
unsigned char packetData[PACKET_LENGTH_BYTES];
|
unsigned char packetData[PACKET_LENGTH_BYTES];
|
||||||
ssize_t receivedBytes = 0;
|
ssize_t receivedBytes = 0;
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,8 @@ void *reportAliveToDS(void *args) {
|
||||||
|
|
||||||
int main(int argc, const char * argv[])
|
int main(int argc, const char * argv[])
|
||||||
{
|
{
|
||||||
|
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||||
|
|
||||||
// get the local address of the voxel server
|
// get the local address of the voxel server
|
||||||
struct ifaddrs * ifAddrStruct=NULL;
|
struct ifaddrs * ifAddrStruct=NULL;
|
||||||
struct ifaddrs * ifa=NULL;
|
struct ifaddrs * ifa=NULL;
|
||||||
|
|
Loading…
Reference in a new issue