blob: da06f00bd05288ed27b1f58807eb8f08e6bc4703 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Patch to remove "duplicate" bits of logs from opkg output, which
massively simplifies do_rootfs logs. The reason is we get unflushed
data passed to the children and duplicated.
RP - 26/1/10
Index: trunk/libbb/gz_open.c
===================================================================
--- trunk.orig/libbb/gz_open.c 2010-01-26 23:12:10.000000000 +0000
+++ trunk/libbb/gz_open.c 2010-01-26 23:12:17.000000000 +0000
@@ -38,6 +38,12 @@
perror_msg("pipe");
return(NULL);
}
+
+ /* If we don't flush, we end up with two copies of anything pending,
+ one from the parent, one from the child */
+ fflush(stdout);
+ fflush(stderr);
+
if ((*pid = fork()) == -1) {
perror_msg("fork");
return(NULL);
|