Flush stderr and stdout instead of immediately closing
Flush stderr and stdout instead of immediately closing

We may need to seek and read in case of errors.

OpenSCAP/openscap-daemon,OpenSCAP/openscap-daemon,pthierry38/openscap-daemon,baude/openscap-daemon,pthierry38/openscap-daemon,baude/openscap-daemon