From a5daeb774b389b71550d27f6e35d385aef3361ad Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Tue, 7 Aug 2007 20:04:06 +0200 Subject: [PATCH] buffer_handle: Remember that we closed the FD once the file is buffered. --- testplugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testplugin.c b/testplugin.c index d641b7a..3cc2db0 100644 --- a/testplugin.c +++ b/testplugin.c @@ -370,6 +370,7 @@ static ssize_t buffer_handle(int handle_id) if (h->filerem == 0) { /* finished buffering the file */ rb->close(h->fd); + h->fd = -1; } DEBUGF("buffered %ld bytes (%ld of %ld available, rem: %ld, off: %ld)\n", -- 2.11.4.GIT