mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Use utime instead of fchmod in WorkerTmp.notify
This commit is contained in:
parent
02d3dd8b7a
commit
0dd6b6350e
@ -39,11 +39,8 @@ class WorkerTmp(object):
|
||||
os.close(fd)
|
||||
raise
|
||||
|
||||
self.spinner = 0
|
||||
|
||||
def notify(self):
|
||||
self.spinner = (self.spinner + 1) % 2
|
||||
os.fchmod(self._tmp.fileno(), self.spinner)
|
||||
os.utime(self._tmp.fileno())
|
||||
|
||||
def last_update(self):
|
||||
return os.fstat(self._tmp.fileno()).st_ctime
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user