You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA" <ar...@navy.mil> on 2006/02/08 16:16:36 UTC

Subversion clients wait for post-commit to finish

	I have a post-commit hook script that fires up
an automatic compilation. The problem is that when
a client (TortoiseSVN on Windows or Subversion on Linux)
do a commit, the client waits for the post-commit to
finish. I even put the compilation process in the background
(e.g. compile_project&). It still waits for the process
to finish. How can I get around that? The compilation
process takes a while. I tried using bash's 'disown'
function but that doesn't help either.
	To duplicate a problem, put 'sleep 20' in your
post-commit hook script. Then do a commit. The commit
will hang for 20 seconds on 'Transmitting file data .' 
step.
	I run Subversion 1.3 on Apache 2.0.55 on Slackware
10.2. 
	I appreciate any help.


--
Artur Kedzierski

Re: Subversion clients wait for post-commit to finish

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 2/8/06, Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
<ar...@navy.mil> wrote:
>         I have a post-commit hook script that fires up
> an automatic compilation. The problem is that when
> a client (TortoiseSVN on Windows or Subversion on Linux)
> do a commit, the client waits for the post-commit to
> finish. I even put the compilation process in the background
> (e.g. compile_project&). It still waits for the process
> to finish. How can I get around that? The compilation
> process takes a while. I tried using bash's 'disown'
> function but that doesn't help either.
>         To duplicate a problem, put 'sleep 20' in your
> post-commit hook script. Then do a commit. The commit
> will hang for 20 seconds on 'Transmitting file data .'
> step.
>         I run Subversion 1.3 on Apache 2.0.55 on Slackware
> 10.2.
>         I appreciate any help.

You need to make sure that the backgrounded job closes its stdout and
stderr filehandles.  Something like:

my-process > /dev/null 2>&1 &

Once that is done, the process should be backgrounded correctly.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org