git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: exit status 141 from git-svn

From
JHJan Hudec <bulb@ucw.cz>
Date
Jul 22, 2008, 17:52 UTC
Message-ID
<20080722175240.GA3561@efreet.light.src>
In-Reply-To
<loom.20080623T145909-992@post.gmane.org>
On Mon, Jun 23, 2008 at 15:00:41 +0000, Frederik Hohlfeld wrote:
> Hi

Sorry for late reply. I just noticed your message after returning from holiday *and* getting time to try to catch up with the list. Hope a reply might still be useful.

Show 6 quoted lines
> I have init'ed a git repository with git svn init.
> 
> Now I'm using git svn fetch, but it stops after just a few files/revisions. The
> exit status is 141.
> 
> What does this 141 want to tell me?

Unix trivia: When process dies from a signal, it's return status (as returned by wait/waitpid(2) is signal_number * 256. However when bourne/POSIX shell sees this, it will convert it to 128 + signal_number.

Now 141 - 128 = 13 and signal 13 is SIGPIPE. Process gets a SIGPIPE when it's writing to a pipe (or socket) and it gets closed on the reading end, so it sounds like a bad redirection somewhere. Aren't you by chance redirecting the output to less and than quitting that without first scrolling to the bottom?

(That would be the most situation where process gets SIGPIPE -- and the very reason why SIGPIPE exists, so that simple commands (like cat) are simply stopped when nobody is interested in their output anymore).

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Frederik Hohlfeld
Message 5 of 5 in “exit status 141 from git-svn”
  1. Frederik HohlfeldJun 23, 2008
  2. Frederik HohlfeldJun 24, 2008
  3. Michael J GruberJun 25, 2008
  4. Frederik HohlfeldJun 26, 2008
  5. Jan HudecJul 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.