Richard, I just wanted to let you know that I've now acquired a Mac OS X 10.7 system and can reproduce this odd terminal behaviour, so will try and get it fixed for version 3.5.
Best, Rob On 27 October 2013 14:38, Rob Day <r...@rkd.me.uk> wrote: > Yes, I agree that it's not a very clean solution - I don't have any access > to OS X, unfortunately, and the problem seems to be OS X specific. So I > think it's best to get that fix in to mitigate the effects, and then when > you or another interested OS X user works out the real cause, we can back it > out and fix it properly. > > Best, > Rob > > On 17/10/13 16:49, Richard Brady wrote: > > Hi Rob > > Sorry for delay in replying. > > Thanks for this. I will give it a test from that branch but I don't feel > like this is the right long term solution. > > Something weird is going on and I'd like to work out what. I think it > *might* have something to do with flushing of stdout. Such as the issues > described by some relating to line buffering behaviour. > > Regards, > Richard > > On 8 October 2013 10:02, Rob Day <r...@rkd.me.uk> wrote: >> >> On 16/09/13 07:29, Richard Brady wrote: >> >> Ok, some very strange behaviour here. After further debugging with gdb I >> have found that adding a short sleep before the stdout flush resolves the >> issue: >> >> --- sipp.cpp.orig 2013-09-16 07:23:52.000000000 +0100 >> +++ sipp.cpp 2013-09-16 07:26:36.000000000 +0100 >> @@ -1545,6 +1545,7 @@ >> } else { >> printf("Last Error: %s" SIPP_ENDL, errstart); >> } >> + sipp_usleep(100); >> fflush(stdout); >> } >> if (command_mode) { >> >> >> Hi Richard, >> >> I've applied this fix as a new branch, terminal_truncation - would you >> mind building the code from >> https://github.com/SIPp/sipp/tree/terminal_truncation and seeing if the fix >> works? >> >> It's not clear from your message whether a single usleep fixed it or >> whether you needed a usleep before every fflush - I've assumed the former. >> >> Best, >> Rob >> >> >> ------------------------------------------------------------------------------ >> October Webinars: Code for Performance >> Free Intel webinars can help you accelerate application performance. >> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most >> from >> the latest Intel processors and coprocessors. See abstracts and register > >> >> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk >> _______________________________________________ >> Sipp-users mailing list >> Sipp-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/sipp-users >> > > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users