diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-15 11:51:15 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-15 11:51:15 +0200 |
commit | 088452702812614cbbbaa64b116f29971920fac2 (patch) | |
tree | 6ebcac8a97e12720e09630e4f41c3cc7ecacd6bb /portato/__init__.py | |
parent | 44d410d007e88d794e35e322082bec3ec69d5fa7 (diff) | |
download | portato-088452702812614cbbbaa64b116f29971920fac2.tar.gz portato-088452702812614cbbbaa64b116f29971920fac2.tar.bz2 portato-088452702812614cbbbaa64b116f29971920fac2.zip |
Renamed 'mq' to 'ipc'
Diffstat (limited to '')
-rw-r--r-- | portato/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/portato/__init__.py b/portato/__init__.py index bc1783b..433c89a 100644 --- a/portato/__init__.py +++ b/portato/__init__.py @@ -89,12 +89,12 @@ def start(): else: # start us again in root modus and launch listener - from . import mq + from . import ipc - _mq = mq.MessageQueue(None, mq.MessageQueue.CREAT | mq.MessageQueue.EXCL) + mq = ipc.MessageQueue(None, ipc.MessageQueue.CREAT | ipc.MessageQueue.EXCL) # start listener - lt = threading.Thread(target=get_listener().set_recv, args = (_mq,)) + lt = threading.Thread(target=get_listener().set_recv, args = (mq,)) lt.setDaemon(False) lt.start() @@ -106,7 +106,7 @@ def start(): su = detect_su_command() if su: debug("Using '%s' as su command.", su.bin) - cmd = su.cmd("%s --no-fork --mq %ld" % (sys.argv[0], _mq.key)) + cmd = su.cmd("%s --no-fork --mq %ld" % (sys.argv[0], mq.key)) sp = subprocess.Popen(cmd, env = env) @@ -126,4 +126,4 @@ def start(): get_listener().close() lt.join() - _mq.remove() + mq.remove() |