ovs.daemon: Add missing 'global' when setting _pidfile_dev, _pidfile_ino.
authorBen Pfaff <blp@nicira.com>
Thu, 25 Aug 2011 00:00:15 +0000 (17:00 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 25 Aug 2011 18:07:22 +0000 (11:07 -0700)
Found by pychecker.

python/ovs/daemon.py

index da7eb8aed99035b34b87183a2a70e5f8104c84ea..7bd7370ee253bb120f28cd33d333c0cb5f30468a 100644 (file)
@@ -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