From: Ben Pfaff Date: Thu, 25 Aug 2011 00:00:15 +0000 (-0700) Subject: ovs.daemon: Add missing 'global' when setting _pidfile_dev, _pidfile_ino. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbad9de12613e835048cb53d6b39300fa05943d4;p=openvswitch ovs.daemon: Add missing 'global' when setting _pidfile_dev, _pidfile_ino. Found by pychecker. --- diff --git a/python/ovs/daemon.py b/python/ovs/daemon.py index da7eb8ae..7bd7370e 100644 --- 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