mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Update gunicorn/workers/workertmp.py
Co-Authored-By: skytoup <875766917@qq.com>
This commit is contained in:
parent
54d35d7358
commit
2a0433e7ed
@ -38,7 +38,7 @@ class WorkerTmp(object):
|
|||||||
|
|
||||||
def notify(self):
|
def notify(self):
|
||||||
new_time = time.monotonic()
|
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):
|
def last_update(self):
|
||||||
return os.fstat(self._tmp.fileno()).st_mtime
|
return os.fstat(self._tmp.fileno()).st_mtime
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user