client: flush stdout after printing prompt
Apparently fgets() doesn't flush stdout in some libc implementations.
This commit is contained in:
parent
4b6b6e5cba
commit
d2e5b41369
1 changed files with 1 additions and 0 deletions
1
client.c
1
client.c
|
@ -124,6 +124,7 @@ read_line(void)
|
||||||
return( line );
|
return( line );
|
||||||
#else
|
#else
|
||||||
printf("%s", prompt);
|
printf("%s", prompt);
|
||||||
|
fflush(stdout);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (fgets(line, sizeof(line), stdin)) {
|
if (fgets(line, sizeof(line), stdin)) {
|
||||||
|
|
Loading…
Reference in a new issue