Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 886547 Details for
Bug 1087938
Only one of three handlers is launched
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
listen.py - create listener with 3 handlers
listen.py (text/x-python), 971 bytes, created by
Alois Mahdal
on 2014-04-15 16:10:16 UTC
(
hide
)
Description:
listen.py - create listener with 3 handlers
Filename:
MIME Type:
Creator:
Alois Mahdal
Created:
2014-04-15 16:10:16 UTC
Size:
971 bytes
patch
obsolete
>#!/usr/bin/python ># listen.py > >import signal >import sys >import time > >import lmi.shell > >HOST = '192.168.122.36' >PORT = 1233 > > >def h_sigint(signal, frame): > l.stop() > sys.exit(0) > >signal.signal(signal.SIGINT, h_sigint) > > >def anno(msg): > print "[%s] %s" % (time.strftime('%Y%m%d-%H%M%S', time.localtime()), msg) > >def mh(ind, name): > anno("handler started: " + name) > data = { > 'name': name, > 'dir': dir(ind), > 'eo': ind.exported_objects(), > 'emn': ind.export_method_names(), > } > fmt = ("===== from handler %(name)s =====\n" > "dir(ind): %(dir)s\n" > "ind.exported_objects(): %(eo)s\n" > "ind.export_method_names(): %(emn)s\n\n") > with open('lis.out', 'a+') as fh: > fh.write(fmt % data) > anno("handler finished: " + name) > >l = lmi.shell.LMIIndicationListener(HOST, PORT) > >for name in "mh1,mh2,mh3".split(","): > l.add_handler(name, mh, name) >l.start() > >while True: > time.sleep(90)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1087938
:
886546
| 886547 |
886548
|
886549