From 771aae85e08cf44b3c5492de9e9d231ad5388cae Mon Sep 17 00:00:00 2001 From: sib Date: Thu, 22 Nov 2012 23:29:25 -0500 Subject: [PATCH] fixed: PWD comparison in arbiter using incorrect attribute names --- gunicorn/arbiter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index 4ee751bf..c4155b04 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -62,7 +62,7 @@ class Arbiter(object): try: a = os.stat(os.environ['PWD']) b = os.stat(os.getcwd()) - if a.ino == b.ino and a.dev == b.dev: + if a.st_ino == b.st_ino and a.st_dev == b.st_dev: cwd = os.environ['PWD'] else: cwd = os.getcwd()