mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #3095 from ramikg/simplify-workertmp-notify
Use `utime` instead of `fchmod` in `WorkerTmp.notify`
This commit is contained in:
commit
571b6fff46
@ -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