diff options
| author | Mark Wielaard <[email protected]> | 2018-05-12 21:30:17 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-05-12 21:30:17 +0200 |
| commit | 9dd183f3d036221758b5a53a8918fd7c568282cb (patch) | |
| tree | d2cc46454661fea426988537dfc451744ed11c7c /src/addr2line.c | |
| parent | 3da2d6af0d56d23a746f540d3c1f8f09e75c6b95 (diff) | |
addr2line: Add explicit fflush for stdout when reading from stdin.
To make it possible to use eu-addr2line interactively through a pipe we
need to explicitly flush stdout after handling each line from stdin.
https://sourceware.org/bugzilla/show_bug.cgi?id=23173
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/addr2line.c')
| -rw-r--r-- | src/addr2line.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/addr2line.c b/src/addr2line.c index 444ee52c..5acafa00 100644 --- a/src/addr2line.c +++ b/src/addr2line.c @@ -187,6 +187,7 @@ main (int argc, char *argv[]) buf[chars - 1] = '\0'; result = handle_address (buf, dwfl); + fflush (stdout); } free (buf); |
