mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst-inspect: Flush stdout before closing stdout FD
Otherwise, last line can be lost.
This commit is contained in:
parent
c3214e8deb
commit
4fbd3baf1e
1 changed files with 1 additions and 0 deletions
|
@ -1951,6 +1951,7 @@ main (int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
|
fflush (stdout);
|
||||||
/* So that the pipe we create in redirect_stdout() is closed */
|
/* So that the pipe we create in redirect_stdout() is closed */
|
||||||
close (STDOUT_FILENO);
|
close (STDOUT_FILENO);
|
||||||
wait (NULL);
|
wait (NULL);
|
||||||
|
|
Loading…
Reference in a new issue