Re: [PATCH] mingw: make stderr unbuffered again
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Feb 16, 2017, 17:55 UTC
- Message-ID
- <d1c65a34-3809-ee76-5e00-69ba715e0093@kdbg.org>
- In-Reply-To
- <alpine.DEB.2.20.1702161753050.3496@virtualbox>
Am 16.02.2017 um 18:10 schrieb Johannes Schindelin:
Show 6 quoted lines
> On Wed, 15 Feb 2017, Johannes Sixt wrote: >> I do not see how dup2() causes a change in stdio state. I >> must be missing something (and that may be a basic misunderstanding of how >> stdio is initialized). > > It appears that dup2()ing fd 2 resets that stdio state.
OK, thanks. It's surprising, but so be it.
Thank you for the quick fix!
-- Hannes