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

Re: [PATCH] svnserve: write pid a bit earlier?

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2007-10-13 10:02:06 CEST

"David Glasser" <glasser@davidglasser.net> writes:

> svnserve -d -r bla --pid-file .svnserve-pid
> spid=`cat .svnserve-pid`
> run some tests
> kill -9 $spid

I don't object to your change, but all you do is shorten the
race: it's inherent in the pidfile practice. What you want is:

  svnserve -d -r bla --foreground &
  spid=$!
  run some tests
  kill -9 $spid

-- 
Eric Gillespie <*> epg@pretzelnet.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 13 10:02:18 2007

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.