all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: Incomplete output from "cvs annotate"
Date: Mon, 19 Jan 2004 17:34:10 +0100	[thread overview]
Message-ID: <ilur7xvsxrx.fsf@latte.josefsson.org> (raw)
In-Reply-To: jen08kyman.fsf@sykes.suse.de

Andreas Schwab <schwab@suse.de> writes:

> Simon Josefsson <jas@extundo.com> writes:
>
>> Andreas Schwab <schwab@suse.de> writes:
>>
>>>>         Why is the pipe opened by call-process -- and which cvs (as
>>>>         well as my wrapper around cvs) writes to -- in non-blocking
>>>>         state?
>>>
>>> See <http://mail.gnu.org/archive/html/bug-cvs/2002-07/msg00423.html>.  The
>>> problem is that ssh makes stderr non-blocking and Emacs connects stdout
>>> and stderr together, so that stdout becomes non-blocking as well.
>>> Workaround is to separate stdout and stderr again, eg. by using this
>>> script as CVS_RSH:
>>>
>>> #!/bin/bash
>>> exec 2> >(exec cat >&2 2>/dev/null)
>>> exec ssh "$@"
>>
>> This workaround isn't a good solution.  Why do Emacs connect stdout
>> and stderr together?
>
> You can either redirect stderr to a file, discard it completely, or
> capture it in the same buffer as stdout.  In the latter case Emacs just
> uses the same fd for both, which corresponds to 2>&1 in the shell.
>
>> IMHO, it shouldn't.  If the data need to be collapsed into the same
>> buffer, it should happen inside Emacs, not by cloning the fd.  So using
>> a BUFFER cons cell in VC for call-process isn't a solution, using just
>> one BUFFER should work.
>
> This is what VC is doing.

So what's the problem?  If VC is using a cons cell, I'd assume the
same fd isn't used for both stdout and stderr, but people's experience
seem to indicate the bug is still around.  Was VC changed recently,
perhaps?  I haven't seen my C-x v u problem for a while, although I
have not used it all that often lately.

If VC is using a cons cell, and that leads to using different fd's for
stdout and stderr, I believe the problem above isn't the same problem
as what we are seeing now.

  reply	other threads:[~2004-01-19 16:34 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-19  1:06 Incomplete output from "cvs annotate" Kim F. Storm
2004-01-19 12:19 ` Andreas Schwab
2004-01-19 14:59   ` Simon Josefsson
2004-01-19 15:45     ` Andreas Schwab
2004-01-19 16:34       ` Simon Josefsson [this message]
2004-01-19 22:36         ` Andreas Schwab
2004-01-20 12:02           ` Simon Josefsson
2004-01-19 21:18     ` Eli Zaretskii
2004-01-20 12:01       ` Simon Josefsson
2004-01-20 13:47         ` Kim F. Storm
2004-01-20 12:54           ` Simon Josefsson
2004-01-20 14:44             ` Kim F. Storm
2004-01-20 18:45         ` Eli Zaretskii
2004-01-20 23:22         ` Andreas Schwab
2004-01-19 17:23   ` Kim F. Storm
2004-01-19 18:36     ` Stefan Monnier
2004-01-19 23:39       ` Kim F. Storm
2004-01-20 16:07         ` Stefan Monnier
2004-01-20 15:31       ` Richard Stallman
2004-01-19 21:42     ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilur7xvsxrx.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.