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

kill(pid_of_ssh, SIGKILL) is rude

From: Alan Barrett <apb_at_cequrux.com>
Date: 2006-03-21 16:34:40 CET

When using the svn+ssh access method, svn kills the ssh process with
SIGKILL (a.k.a "kill -9"). This doesn't give ssh (or a wrapper invoked
via the SVN_SSH environment variable) a chance to clean up. I had
hundreds of temporary files lying around before I figured out why my
wrapper wasn't deleting its temporary files: svn was rudely killing it!

I see the comments in the source about why svn does this. I suspect
that the real problem could be solved by a strategy like this:

    wait a few seconds to see whether ssh exits by itself
    if not, then kill(pid_of_ssh, SIGTERM)
    wait a few more seconds to see whether ssh exits by itself
    if not, then kill(pid_of_ssh, SIGKILL)

--apb (Alan Barrett)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 21 16:42:42 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.