projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af1eba2
)
ovs.daemon: Add missing 'global' when setting _pidfile_dev, _pidfile_ino.
author
Ben Pfaff
<blp@nicira.com>
Thu, 25 Aug 2011 00:00:15 +0000
(17:00 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 25 Aug 2011 18:07:22 +0000
(11:07 -0700)
Found by pychecker.
python/ovs/daemon.py
patch
|
blob
|
history
diff --git
a/python/ovs/daemon.py
b/python/ovs/daemon.py
index da7eb8aed99035b34b87183a2a70e5f8104c84ea..7bd7370ee253bb120f28cd33d333c0cb5f30468a 100644
(file)
--- a/
python/ovs/daemon.py
+++ b/
python/ovs/daemon.py
@@
-182,6
+182,8
@@
def _make_pidfile():
if error:
_fatal("%s: unlink failed (%s)" % (tmpfile, os.strerror(error)))
+ global _pidfile_dev
+ global _pidfile_ino
_pidfile_dev = s.st_dev
_pidfile_ino = s.st_ino