git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
daemon: Avoid races on pidfile creation.
[sliver-openvswitch.git]
/
tests
/
test-daemon.py
diff --git
a/tests/test-daemon.py
b/tests/test-daemon.py
index
586e0ec
..
350b8f7
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
@@
-24,6
+25,7
@@
def handler(signum, frame):
raise Exception("Signal handler called with %d" % signum)
def main(argv):
raise Exception("Signal handler called with %d" % signum)
def main(argv):
+ logging.basicConfig(level=logging.DEBUG)
signal.signal(signal.SIGHUP, handler)
signal.signal(signal.SIGHUP, handler)