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

Re: Waiting for background jobs in hook scripts

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-08-21 15:33:17 CEST

On 8/18/06, Sven Brueggemann <SBrueggemann@gmx.net> wrote:
> Hello,
>
> I just upgraded my server from svn 1.2.0 to 1.3.2. Since I read this
> list, I was aware of a problem with hook scripts waiting for background
> jobs.
>
> In the CHANGES file, I found an entry
>
> Version 1.3.1
> - Server:
> * fixed: don't wait for hook script background jobs (r18146)
>
> and thought this problem was fixed, until I discovered, that
> a commit with 1.3.2 takes ages. When commenting out my background
> job from the post-commit hook, everything works fine.
>
> Is this a regression bug? Will it be fixed in 1.4.0?

No, it's not a bug, it's simply that a fix to another problem has made
it a little harder to background jobs in a hook script. You have to
make sure that all the file descriptors the job opens are closed, or
svn will wait for them to be closed (i.e. when the the process exits).

On unix you'd do that like this:

long-running-command >> /dev/null 2>&1

Of course, if you want to see the output you should redirect it to
someplace other than /dev/null.

There is some equivalent on Win32, but I'm not a windows person so I
don't know the details.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 21 15:35:13 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.