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

Re: svn hung at end of commit operation

From: Molle Bestefich <molle.bestefich_at_gmail.com>
Date: 2006-03-27 10:33:36 CEST

Peter Samuelson wrote:
> Molle Bestefich wrote:
> > Try something like:
> > (/usr/local/svn/hook-scripts/mailer.py commit "${REPOS}" "${REV}" &) &
>
> I thought that was only useful if your shell uses job control.
> Noninteractive shells shouldn't.

The purpose of the above is not to start the process in a background
job but to detach it from the shell that runs it:

~ # (sleep 5 &) &
[1] 416
[1]+ Done ( sleep 5 & )
~ # jobs
~ # ps
   PID PPID STIME COMMAND
  4084 4083 10:16 bash
  2600 1 10:16 sleep
  4092 4084 10:17 ps
~ #

Note the PPID for 'sleep'.

> I agree that redirecting stdout and stderr should be sufficient.
> Come to think of it, perhaps just at the top of the hook script:
> exec < /dev/null > /dev/null 2>&1
> which then affects the whole shell and all subprocesses.

Perhaps.
What happens when the hook script process dies early (to allow svn to continue)?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 27 10:35:32 2006

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.