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

Re: svn 1.3.0: post-commit hook waits even if tasks are backgrounded

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2006-01-17 21:59:38 CET

On Tue, 2006-01-17 at 20:33 +0100, Peter N. Lundblad wrote:
> Yeah, you're not the first one to get confused. But go read
> apr_procattr_childerr_set. This function creates a new pipe, allocating
> file descriptors for its own use and then dup2s the descriptor(s) we gave
> it. The allocated descriptors will be closed after having been duplicated
> to stderr, but the descriptor we gave it will not be closed.

Okay, I understand.

APR is clearly poorly architected here, and I think you've found the
best workaround for now. I looked for examples of httpd starting
processes with input or output streams set, and there don't seem to be
any.

(Another workaround would be to close the pipes after we set them with
apr_procattr_child_err_set and friends, but our APIs make that
difficult.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 18 00:22:57 2006

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