summaryrefslogtreecommitdiff
path: root/mcastseed/src/mcastleech.c
diff options
context:
space:
mode:
Diffstat (limited to 'mcastseed/src/mcastleech.c')
-rw-r--r--mcastseed/src/mcastleech.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcastseed/src/mcastleech.c b/mcastseed/src/mcastleech.c
index a23e73a..76e1e79 100644
--- a/mcastseed/src/mcastleech.c
+++ b/mcastseed/src/mcastleech.c
@@ -246,6 +246,7 @@ int receive_data() {
int finalize_job() {
ssize_t nwrite;
int info_w, res;
+ char *stats;
/* Don't eat reources in a pooling fashion, blocking IO is fine when no more recv to do */
set_O_NONBLOCK(1, 0);
@@ -265,6 +266,11 @@ int finalize_job() {
return res;
}
+ res = dgrambuf_stats(dgrambuf, &stats);
+ if ( res != - 1 ) {
+ fprintf(stderr, "finalize_job(): dgrambuf_stats : %s\n",stats);
+ free(stats);
+ }
return 0;
}