flush messages in retrace client

This commit is contained in:
Jiri Moskovcak 2011-05-06 13:05:02 +02:00
commit 3c86bd28e8
2 changed files with 24 additions and 1 deletions

View file

@ -10,7 +10,7 @@
Summary: Automatic bug detection and reporting tool
Name: abrt
Version: 2.0.2
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Group: Applications/System
URL: https://fedorahosted.org/abrt/
@ -22,6 +22,7 @@ Patch0: remove_libreport_python.patch
Patch1: blacklist.patch
Patch2: allow_bz_for_koops.patch
Patch3: retrace_addr.patch
Patch4: retrace_client_flush.patch
BuildRequires: dbus-devel
BuildRequires: gtk2-devel
BuildRequires: curl-devel
@ -262,6 +263,7 @@ generation service over a network using HTTP protocol.
%patch1 -p1 -b .blacklist
%patch2 -p1 -b bz_for_oops
%patch3 -p1 -b retrace_addr
%patch4 -p1 -b flush_messages
%build
autoconf
@ -644,6 +646,9 @@ fi
%{_infodir}/abrt-retrace-server*
%changelog
* Fri May 06 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.2-2
- flush messages in retrace client
* Thu May 05 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.2-1
- updated translation
- new icons (thanks to Lapo Calamandrei)

View file

@ -0,0 +1,18 @@
commit a74f116ad098343282f5be157fd59e4e4aba4705
Author: Michal Toman <mtoman@redhat.com>
Date: Fri May 6 11:25:55 2011 +0200
retrace client: flush stdout after each status message in batch mode
diff --git a/src/plugins/abrt-retrace-client.c b/src/plugins/abrt-retrace-client.c
index 5ade792..1d46a8c 100644
--- a/src/plugins/abrt-retrace-client.c
+++ b/src/plugins/abrt-retrace-client.c
@@ -844,6 +844,7 @@ static int run_batch(bool delete_temp_archive)
sleep(10);
status(task_id, task_password, &task_status, &status_message);
puts(status_message);
+ fflush(stdout);
}
if (0 == strcmp(task_status, "FINISHED_SUCCESS"))
{