master - setvbuf: close and reopen stream before change
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=92330ba9c8e21451f8406377ae4839f397f369a2 Commit: 92330ba9c8e21451f8406377ae4839f397f369a2 Parent: 3acc85caa8d313b8c21e4bef7f84601731e74b2b Author: Alasdair G Kergon <[email protected]> AuthorDate: Sun Aug 26 00:19:52 2012 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Sun Aug 26 00:19:52 2012 +0100
setvbuf: close and reopen stream before change
Fix setvbuf code by closing and reopening stream before changing buffer.
But we need to review what this code is doing embedded inside a library function rather than the simpler original form being run independently at the top of main() by tools that need it.
--- WHATS_NEW | 1 + lib/commands/toolcontext.c | 65 +++++++++++++++++++++++++++++++++++++++---- 2 files changed, 60 insertions(+), 6 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.98 - ================================= + Fix setvbuf code by closing and reopening stream before changing buffer. Disable private buffering when using liblvm. When private stdin/stdout buffering is not used always use silent mode. Add log/silent to lvm.conf equivalent to -qq.
lib/commands/toolcontext.c +59 -6
95 lines not on this page · raw message