[LU-14913] flush stdout/stderr for llapi_printf()/llapi_error Created: 06/Aug/21 Updated: 08/Aug/21 Resolved: 08/Aug/21 |
|
| Status: | Closed |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Feng Lei | Assignee: | Feng Lei |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
llapi_printf() and llapi_error() use fprintf() to print message to stdout/stderr stream , so the content may be buffered and cannot be printed in time, especially if the stdout/stderr is redirected. Sometime this behavior is confusing. , so flush the stdout/stderr after printing the message in llapi_printf()/llapi_error(). |
| Comments |
| Comment by Feng Lei [ 08/Aug/21 ] |
|
Don't need it. |