diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-11-23 14:44:56 +0100 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-11-23 14:44:56 +0100 |
commit | b7e84e3fc5418641041f95a80f08fe053c004c27 (patch) | |
tree | a0e0865c87e8bd127df674b53b30f3e323c1b255 /daemon.py | |
parent | b80f0a3c1f04c4446ab3f7ec019a3888fa098fab (diff) | |
download | logilab-common-b7e84e3fc5418641041f95a80f08fe053c004c27.tar.gz |
include Dotan Barak spell fixes patch
Diffstat (limited to 'daemon.py')
-rw-r--r-- | daemon.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -34,14 +34,14 @@ If it i not the case, remove the file %s''' % (self.name, self._pid_file)) # fork so the parent can exist if (os.fork()): return -1 - # deconnect from tty and create a new session + # disconnect from tty and create a new session os.setsid() # fork again so the parent, (the session group leader), can exit. # as a non-session group leader, we can never regain a controlling # terminal. if (os.fork()): return -1 - # move to the root to avoit mount pb + # move to the root to avoid mount pb os.chdir('/') # set paranoid umask os.umask(077) @@ -58,8 +58,8 @@ If it i not the case, remove the file %s''' % (self.name, self._pid_file)) signal.signal(signal.SIGHUP, self.signal_handler) def run(self): - """ optionaly go in daemon mode and - do what concrete classe has to do and pauses for delay between runs + """ optionally go in daemon mode and + do what concrete class has to do and pauses for delay between runs If self.delay is negative, do a pause before starting """ if self._daemonize() == -1: @@ -101,7 +101,7 @@ If it i not the case, remove the file %s''' % (self.name, self._pid_file)) reload(self.config) def _run(self): - """should be overidden in the mixed class""" + """should be overridden in the mixed class""" raise NotImplementedError() ## command line utilities ###################################################### |