Re: Why does close_stdout close stdout and stderr?

2019-04-29 Thread Florian Weimer
* Eric Blake: > On 4/29/19 2:45 PM, Florian Weimer wrote: >> I get that error checking is important. But why not just use ferror and >> fflush? Closing the streams is excessive and tends to introduce >> use-after-free issues, as evidenced by the sanitizer workarounds. > > If I recall the explana

Re: Why does close_stdout close stdout and stderr?

2019-04-29 Thread Eric Blake
On 4/29/19 2:45 PM, Florian Weimer wrote: > I get that error checking is important. But why not just use ferror and > fflush? Closing the streams is excessive and tends to introduce > use-after-free issues, as evidenced by the sanitizer workarounds. If I recall the explanation, at least some ver

Why does close_stdout close stdout and stderr?

2019-04-29 Thread Florian Weimer
I get that error checking is important. But why not just use ferror and fflush? Closing the streams is excessive and tends to introduce use-after-free issues, as evidenced by the sanitizer workarounds. Thanks, Florian