Permalink
Browse files

extended daemonize default stop timeout from 5 seconds up to 10

  • Loading branch information...
1 parent 8196fa4 commit a68bea7fadd4a2ca88cab83a537ee4921bb0d224 @trey0 trey0 committed Oct 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 geocamPycroraptor2/daemonize.py
@@ -77,15 +77,15 @@ def stop(self):
print ('stopping %s (first attempt, SIGTERM), pid %s...'
% (self._name, pid))
os.kill(pid, signal.SIGTERM)
- isDead = waitUntilDead(pid, timeout=5)
+ isDead = waitUntilDead(pid, timeout=10)
if isDead:
print 'stopped'
cleanIfExists(self._pidPath)
return
print ('stopping %s (second attempt, SIGKILL), pid %s...'
% (self._name, pid))
os.kill(pid, signal.SIGKILL)
- isDead = waitUntilDead(pid, timeout=5)
+ isDead = waitUntilDead(pid, timeout=10)
if isDead:
print 'stopped'
cleanIfExists(self._pidPath)

0 comments on commit a68bea7

Please sign in to comment.