Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libc/stdio: Flush stdout on read from stdin
Fix read from stdin to flush stdout. This happens in Linux (glibc) and in traditional UNIX, although it was never guaranteed by any standard. This behavior was added in UNIX because it was useful for programs which print a prompt and read input - forgetting to fflush(stdout) in the meantime. It was later done to Linux to run programs which assumed it, and for the same reason we also want it in OSv. Fixes #464. Signed-off-by: Nadav Har'El <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
- Loading branch information