From f8b4d848c0a1fa54ffcd8c7df6c375506b26c4b6 Mon Sep 17 00:00:00 2001 From: trz Date: Tue, 10 Oct 2006 19:24:23 +0000 Subject: fix for transport test failure in nightly testsuite --- runtime/stpd/ChangeLog | 5 +++++ runtime/stpd/librelay.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'runtime/stpd') diff --git a/runtime/stpd/ChangeLog b/runtime/stpd/ChangeLog index 05cdc779..964f9018 100644 --- a/runtime/stpd/ChangeLog +++ b/runtime/stpd/ChangeLog @@ -1,3 +1,8 @@ +2006-10-10 Tom Zanussi + + * librelay.c (merge_output): Add check for min when writing + output, otherwise last write happens twice. + 2006-09-26 David Smith * Makefile: Changed 'stpd' references to 'staprun'. diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c index f39b0785..0a5040c2 100644 --- a/runtime/stpd/librelay.c +++ b/runtime/stpd/librelay.c @@ -624,9 +624,9 @@ static int merge_output(void) } } - if (!quiet) + if (min && !quiet) fwrite_unlocked (buf[j]+TIMESTAMP_SIZE, length[j], 1, stdout); - if (!print_only) + if (min && !print_only) fwrite_unlocked (buf[j]+TIMESTAMP_SIZE, length[j], 1, ofp); if (min && ++count != min) { -- cgit