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

[PATCH] svnserve: write pid a bit earlier?

From: David Glasser <glasser_at_davidglasser.net>
Date: 2007-10-13 00:05:23 CEST

So one of my test scripts essentially does

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

... except that sometimes the shell manages to cat the PID file before
it's written. Any reason not to apply the attached patch? (Like, the
proc detach doesn't change the PID or anything weird like that,
right?)

--dave

[[[
* subversion/svnserve/main.c
  (main): Write the PID file before detaching, so that the process
that runs svnserve
   can read it immediately.
]]]

-- 
David Glasser | glasser_at_davidglasser.net | http://www.davidglasser.net/


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

Received on Sat Oct 13 00:09:34 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.