X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2Fovs%2Fdaemon.py;h=5937877c3e1e52cc8fca25555fa8210e2ab12be5;hb=c06bba01302e3dc1ec7808024bc37ce90956b49e;hp=a919c53ecb4ab178f60e259086c827aa4b1af40b;hpb=723a8d23f5d9ba07d67bf4d312b00f001db5bdb4;p=openvswitch diff --git a/python/ovs/daemon.py b/python/ovs/daemon.py index a919c53e..5937877c 100644 --- a/python/ovs/daemon.py +++ b/python/ovs/daemon.py @@ -141,7 +141,7 @@ def _make_pidfile(): # This is global to keep Python from garbage-collecting and # therefore closing our file after this function exits. That would # unlock the lock for us, and we don't want that. - global file + global file_handle file_handle = open(tmpfile, "w") except IOError, e: