Skip to content

Commit 571b6ff

Browse files
authored
Merge pull request #3095 from ramikg/simplify-workertmp-notify
Use `utime` instead of `fchmod` in `WorkerTmp.notify`
2 parents 02d3dd8 + 0dd6b63 commit 571b6ff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gunicorn/workers/workertmp.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ def __init__(self, cfg):
3939
os.close(fd)
4040
raise
4141

42-
self.spinner = 0
43-
4442
def notify(self):
45-
self.spinner = (self.spinner + 1) % 2
46-
os.fchmod(self._tmp.fileno(), self.spinner)
43+
os.utime(self._tmp.fileno())
4744

4845
def last_update(self):
4946
return os.fstat(self._tmp.fileno()).st_ctime

0 commit comments

Comments
 (0)