[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Issue 2950] New - Weird prompting to resolve conflicts when EDITOR is not defined

From: Ben Collins-Sussman <sussman_at_red-bean.com>
Date: 2007-10-02 23:14:26 CEST

This patch looks pretty good to me. Can you commit it, and see if it
resolves the weird behavior that Mark was seeing?

On 10/1/07, Daniel L. Rall <dlr@finemaltcoding.com> wrote:
> On Mon, 01 Oct 2007, Eric Gillespie wrote:
>
> > Jack Repenning <jrepenning@collab.net> writes:
> >
> > > On Oct 1, 2007, at 6:32 PM, Eric Gillespie wrote:
> > >
> > > > I advocate setting line buffering in
> > > > svn_cmdline_init, something like:
> > > >
> > > > setvbuf(stderr, NULL, _IOLBF, 0);
> > > > setvbuf(stdout, NULL, _IOLBF, 0);
> > >
> > > +1 on stdout. But isn't stderr ordinarily character-buffered, for
> > > reasons having to do with ensuring you can report program crash even
> > > if the crash is because you can't allocate a line buffer to report it?
> >
> > When connected to a tty, yes; good catch. We should use _IONBF
> > for stderr.
>
> Patch attached. Rather than operating on stderr, svn_cmdline_init()
> takes an ERROR_STREAM parameter. Return values from setvbuf() appear
> to be best-off ignored, I suppose.
> --
>
> Daniel Rall
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 2 23:14:43 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.