What type of buffering does the standard error stream use by default in Linux?
Asked
Active
Viewed 662 times
1 Answers
2
From the manpage for stderr(3)
The stream stderr is unbuffered. The stream stdout is line-buffered when it points to a terminal. Partial lines will not appear until fflush(3) or exit(3) is called, or a newline is printed. This can produce unexpected results, especially with debugging output. ... Note that in case stdin is associated with a terminal, there may also be input buffering in the terminal driver, entirely unrelated to stdio buffering.

JRFerguson
- 14,740