public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Error "fatal: write failure on 'stdout': No error" in native console
@ 2019-08-16 11:11 Andrey Repin
  2019-08-17  1:44 ` Duncan Roe
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Repin @ 2019-08-16 11:11 UTC (permalink / raw)
  To: All

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

Greetings, All!

I'm trying to resolve the problem at my new workplace, which seems to be
affecting the ability to use git with VS Code.
It just does not see the repo, no matter if I point its nose directly to the
directory.

When toying around the terminal, I noticed that calling simple

> git log | head -1
commit 8f4c6f50a4c6becee2c6007fdb2e67be70fc06b6
fatal: write failure on 'stdout': No error

Bummer. I can't replicate it on my home system, which have more or less
identical setup.
Any pointers?

P.S.
This all happens on Win7 PRO.


-- 
With best regards,
Andrey Repin
Friday, August 16, 2019 13:32:30

Sorry for my terrible english...

[-- Attachment #2: cygcheck.txt.gz --]
[-- Type: application/x-gzip, Size: 5892 bytes --]

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error "fatal: write failure on 'stdout': No error" in native console
  2019-08-16 11:11 Error "fatal: write failure on 'stdout': No error" in native console Andrey Repin
@ 2019-08-17  1:44 ` Duncan Roe
  0 siblings, 0 replies; 2+ messages in thread
From: Duncan Roe @ 2019-08-17  1:44 UTC (permalink / raw)
  To: cygwin

Hi Audrey,

On Fri, Aug 16, 2019 at 01:36:58PM +0300, Andrey Repin wrote:
> Greetings, All!
>
> I'm trying to resolve the problem at my new workplace, which seems to be
> affecting the ability to use git with VS Code.
> It just does not see the repo, no matter if I point its nose directly to the
> directory.
>
> When toying around the terminal, I noticed that calling simple
>
> > git log | head -1
> commit 8f4c6f50a4c6becee2c6007fdb2e67be70fc06b6
> fatal: write failure on 'stdout': No error
>
> Bummer. I can't replicate it on my home system, which have more or less
> identical setup.
> Any pointers?
>
> P.S.
> This all happens on Win7 PRO.
>
>
> --
> With best regards,
> Andrey Repin
> Friday, August 16, 2019 13:32:30
>
> Sorry for my terrible english...

Cheap & cheerful solution:

> git log | head -1 2>/dev/null

You got your 1 line of output.

The head program closes stdin after reading "n" lines. That sends SIGPIPE to the
previous process, or EPIPE to write(), if SIGPIPE is caught. I suspect you are
seeing the latter, but with errno not getting set properly for some reason.

If you would care to experiment with a simple C program that outputs a few lines
and try catching SIGPIPE you may well come up with an STC.

Cheers ... Duncan.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-17  1:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-16 11:11 Error "fatal: write failure on 'stdout': No error" in native console Andrey Repin
2019-08-17  1:44 ` Duncan Roe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).