* viewcvs/lib/vclib/svn/__init__.py
(_sigterm_handler): Make self available for compatibility with older Python versions. (Thanks for catching this, Greg Stein.) git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1012 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/1.0.0-rc1
parent
5ad97c13bb
commit
e58df06c55
|
@ -323,7 +323,7 @@ class SubversionRepository(vclib.Repository):
|
|||
# output, Apache will grow impatient and SIGTERM it. While we
|
||||
# don't mind getting told to bail, we want to gracefully close the
|
||||
# repository before we bail.
|
||||
def _sigterm_handler(signum, frame):
|
||||
def _sigterm_handler(signum, frame, self=self):
|
||||
self._close()
|
||||
sys.exit(-1)
|
||||
signal.signal(signal.SIGTERM, _sigterm_handler)
|
||||
|
|
Loading…
Reference in New Issue