Skip to content

Commit 0dd6b63

Browse files
authored
Use utime instead of fchmod in WorkerTmp.notify
1 parent 02d3dd8 commit 0dd6b63

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)