Import of pkgsrc-2015Q3
This commit is contained in:
14
sysutils/lnav/patches/patch-src_grep__proc.cc
Normal file
14
sysutils/lnav/patches/patch-src_grep__proc.cc
Normal file
@@ -0,0 +1,14 @@
|
||||
$NetBSD: patch-src_grep__proc.cc,v 1.1 2015/09/05 22:12:04 wiz Exp $
|
||||
|
||||
stdout is not an lvalue, and if it was, this looks idempotent.
|
||||
|
||||
--- src/grep_proc.cc.orig 2015-04-09 03:40:09.000000000 +0000
|
||||
+++ src/grep_proc.cc
|
||||
@@ -159,7 +159,6 @@ void grep_proc::child_loop(void)
|
||||
char outbuf[BUFSIZ * 2];
|
||||
string line_value;
|
||||
|
||||
- stdout = fdopen(STDOUT_FILENO, "w");
|
||||
/* Make sure buffering is on, not sure of the state in the parent. */
|
||||
if (setvbuf(stdout, outbuf, _IOFBF, BUFSIZ * 2) < 0) {
|
||||
perror("setvbuf");
|
||||
Reference in New Issue
Block a user