Update gunicorn/workers/workertmp.py

Co-Authored-By: skytoup <875766917@qq.com>
This commit is contained in:
Randall Leeds 2019-02-17 14:37:37 +08:00 committed by GitHub
parent 54d35d7358
commit 2a0433e7ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ class WorkerTmp(object):
def notify(self):
new_time = time.monotonic()
os.utime(self._tmp.name, (new_time, new_time))
os.utime(self._tmp.fileno(), (new_time, new_time))
def last_update(self):
return os.fstat(self._tmp.fileno()).st_mtime