Fix typos.

This commit is contained in:
Stephen Diehl
2012-07-10 14:31:01 -04:00
parent 56da9d53f8
commit 0342ee7f62
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -196,6 +196,10 @@ class Component(object):
The core logic of the all components is run here. The core logic of the all components is run here.
""" """
log.info("Start %r" % self)
log.info("Pid %s" % os.getpid())
log.info("Group %s" % os.getpgrp())
self.start_tic = time.time() self.start_tic = time.time()
self.done = False # TODO: use state flag self.done = False # TODO: use state flag
+3 -1
View File
@@ -6,6 +6,7 @@ import gevent
import itertools import itertools
import logbook import logbook
import gevent_zeromq import gevent_zeromq
from setproctitle import setproctitle
from signal import SIGHUP, SIGINT from signal import SIGHUP, SIGINT
from collections import OrderedDict from collections import OrderedDict
@@ -158,6 +159,7 @@ class Controller(object):
def run(self): def run(self):
self.running = True self.running = True
self.init_zmq(self.zmq_flavor) self.init_zmq(self.zmq_flavor)
setproctitle('Monitor')
self.state = CONTROL_STATES.INIT self.state = CONTROL_STATES.INIT
@@ -370,7 +372,7 @@ class Controller(object):
it. it.
""" """
if not self.nosignals: if not self.nosignals:
ppid = os.getpid() ppid = os.getppid()
log.warning("Sending SIGHUP") log.warning("Sending SIGHUP")
os.kill(ppid, SIGHUP) os.kill(ppid, SIGHUP)
else: else: