Re: [PATCH 1/9] Enable wt-status output to a given FILE pointer.
- From
Kristian Høgsberg <krh@redhat.com>
- Date
- Sep 17, 2007, 23:30 UTC
- Message-ID
- <1190071825.10112.19.camel@hinata.boston.redhat.com>
- In-Reply-To
- <Pine.LNX.4.64.0709061726010.28586@racer.site>
On Thu, 2007-09-06 at 17:27 +0100, Johannes Schindelin wrote:
Show 8 quoted lines
> Hi, > > On Wed, 5 Sep 2007, Kristian Høgsberg wrote: > > > Still defaults to stdout, but you can now override wt_status.fp after > > calling wt_status_prepare(). > > Would it not be easier to freopen(filename, "a", stdout)?
It's probably easier, but I think this is cleaner and the patch isn't that big. I don't want to worry about the side effects of freopening stdout...
Kristian