summaryrefslogtreecommitdiff
path: root/hurd/debugging/translator
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2008-12-17 23:38:33 +0100
committerThomas Schwinge <tschwinge@gnu.org>2008-12-17 23:46:46 +0100
commit6abe3c1e8a9e3a58d50d098a6211632d02d9a250 (patch)
tree0da9835723634c4f24c75fb885188c118b7d4e2c /hurd/debugging/translator
parente81e25b0f95a98da1880fc0dcaebeffa162b3e75 (diff)
hurd/debugging/translator/capturing_stdout_and_stderr: Note about line-buffering.
Diffstat (limited to 'hurd/debugging/translator')
-rw-r--r--hurd/debugging/translator/capturing_stdout_and_stderr.mdwn7
1 files changed, 7 insertions, 0 deletions
diff --git a/hurd/debugging/translator/capturing_stdout_and_stderr.mdwn b/hurd/debugging/translator/capturing_stdout_and_stderr.mdwn
index 8430287a..e95d6e12 100644
--- a/hurd/debugging/translator/capturing_stdout_and_stderr.mdwn
+++ b/hurd/debugging/translator/capturing_stdout_and_stderr.mdwn
@@ -24,3 +24,10 @@ Sometimes it may already be helpful to capture a translator's `stdout` and
(Trying to run [[GDB]] in this case was of no help -- due to a bug in GDB
(supposedly) it wouldn't catch the fault.)
+
+Be made aware that both `stdout` and `stderr` will be block bufferend and no
+longer line buffered when doing such a redirection, so you'll have to arrange
+for appropriate `fflush`es on these, or force them to be line buffered again
+using the appropriate glibc magic (`setvbuf`). Otherwise you'll see text in
+the output files only if either glibc herself decides to flush (after some KiB
+of text) the after translator exits.