diff options
| author | Jon Maloy <jmaloy@redhat.com> | 2025-05-29 13:08:58 -0400 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-06-06 10:46:40 +0200 |
| commit | 081df67d1fb28bf7a98f98c6c3417ec1d45ce6d7 (patch) | |
| tree | c25a3b65e007c51be91c175db28b7cf2bd871e67 /doc | |
| parent | bcb559600545498ae7598617ef82d2810937132c (diff) | |
| download | passt-081df67d1fb28bf7a98f98c6c3417ec1d45ce6d7.tar passt-081df67d1fb28bf7a98f98c6c3417ec1d45ce6d7.tar.gz passt-081df67d1fb28bf7a98f98c6c3417ec1d45ce6d7.tar.bz2 passt-081df67d1fb28bf7a98f98c6c3417ec1d45ce6d7.tar.lz passt-081df67d1fb28bf7a98f98c6c3417ec1d45ce6d7.tar.xz passt-081df67d1fb28bf7a98f98c6c3417ec1d45ce6d7.tar.zst passt-081df67d1fb28bf7a98f98c6c3417ec1d45ce6d7.zip | |
conf: flush stdout before early exit
Before doing an early exit any contents of stdout is normally flushed.
This doesn't happen when the output goes into a pipe and we return with
_exit(). We now add an explicit flush in such cases.
Reported-by: John Radley <jradxl2@gmail.com>
Fixes: d0006fa784a7 ("treewide: use _exit() over exit()")
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Reviewed-by: Paul Holzinger <pholzing@redhat.com>
[sbrivio: cast fflush() calls to void to dodge clang-tidy warning]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
