projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
poll-loop: Enable checking whether a FD caused a wakeup.
[openvswitch]
/
tests
/
test-daemon.py
diff --git
a/tests/test-daemon.py
b/tests/test-daemon.py
index 586e0ec3606ab50422907816eb450c231d0e6405..816304fa075df1102630c347c8bb918763438532 100644
(file)
--- a/
tests/test-daemon.py
+++ b/
tests/test-daemon.py
@@
-13,6
+13,7
@@
# limitations under the License.
import getopt
# limitations under the License.
import getopt
+import logging
import signal
import sys
import time
import signal
import sys
import time
@@
-20,10
+21,13
@@
import time
import ovs.daemon
import ovs.util
import ovs.daemon
import ovs.util
-def handler(signum, frame):
+
+def handler(signum, _):
raise Exception("Signal handler called with %d" % signum)
raise Exception("Signal handler called with %d" % signum)
+
def main(argv):
def main(argv):
+ logging.basicConfig(level=logging.DEBUG)
signal.signal(signal.SIGHUP, handler)
signal.signal(signal.SIGHUP, handler)
@@
-55,6
+59,7
@@
def main(argv):
while True:
time.sleep(1)
while True:
time.sleep(1)
+
def usage():
sys.stdout.write("""\
%s: Open vSwitch daemonization test program for Python
def usage():
sys.stdout.write("""\
%s: Open vSwitch daemonization test program for Python