Hi,
In order to fix the problem with the Terminal on MAC OS X, you should add
setlinebuf(stdout);
At the beginning of print_statistics() in logger.cpp
There is no need of usleep(100) - it doesn't do much go.
What you describe is probably a fluke fix (there's some logic probably).
Anyhow, the problem is that stood on MAC OS X is not all the time
line-buffered, whereas the SIPP Logger counts on this fact.
What happens is that before one line is finished and flushed - another one is
being printed over it.
This causes the first line to be truncated and the second line to be misplaced.
Just by making the stdout line-buffered - this problem is easily averted.
Cheers!
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users