ovs.daemon: Fix name of EALREADY error.
authorBen Pfaff <blp@nicira.com>
Thu, 25 Aug 2011 00:00:46 +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 7bd7370ee253bb120f28cd33d333c0cb5f30468a..d4e4bf112a05ec4b2b07c2efc535aa5a6af2a8db 100644 (file)
@@ -415,7 +415,7 @@ def __read_pidfile(pidfile, delete_if_stale):
             raced = True
         if raced:
             logging.warning("%s: lost race to delete pidfile" % pidfile)
-            return -errno.ALREADY
+            return -errno.EALREADY
 
         # We won the right to delete the stale pidfile.
         try: