diff options
Diffstat (limited to 'src/common/exec.c')
-rw-r--r-- | src/common/exec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/exec.c b/src/common/exec.c index fdcad0ee8cf..22f04aafbec 100644 --- a/src/common/exec.c +++ b/src/common/exec.c @@ -388,9 +388,7 @@ pipe_read_line(char *cmd, char *line, int maxsize) { FILE *pgver; - /* flush output buffers in case popen does not... */ - fflush(stdout); - fflush(stderr); + fflush(NULL); errno = 0; if ((pgver = popen(cmd, "r")) == NULL) |