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

`svn ci -F -` fails on svn+ssh due to APR bug

From: Dan Ports <drkp_at_csail.mit.edu>
Date: Tue, 11 Oct 2011 19:08:42 -0400

I recently noticed that commits fail with the following error when the
commit message is read from stdin (i.e. `svn ci -F -`) and the
repository is being accessed using svn+ssh:

> svn ci -F -
  <creative log message here>
  ^D
  svn: Commit failed (details follow):
  svn: Can't write to connection: Broken pipe

I tracked this down to a bug in APR where a child process's file
descriptors won't be properly set up if the parent's stdin has already
been closed. I've already filed a bug against APR for this:
  https://issues.apache.org/bugzilla/show_bug.cgi?id=51995
but thought I'd mention it here too since I noticed the error with svn.

(As for why I wanted to pass the commit message on stdin in the first
place, I'm using a custom emacs mode that lets me interactively choose
which files to commit, and that's how it invokes svn to do the actual
commit.)

Dan

-- 
Dan R. K. Ports              MIT CSAIL                http://drkp.net/
Received on 2011-10-12 01:09:15 CEST

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.