gst-inspect: Flush stdout before closing stdout FD

Otherwise, last line can be lost.
This commit is contained in:
Zeeshan Ali 2018-10-30 14:52:15 +01:00
parent c3214e8deb
commit 4fbd3baf1e

View file

@ -1951,6 +1951,7 @@ main (int argc, char *argv[])
}
#ifdef G_OS_UNIX
fflush (stdout);
/* So that the pipe we create in redirect_stdout() is closed */
close (STDOUT_FILENO);
wait (NULL);