Use utime instead of fchmod in WorkerTmp.notify

This commit is contained in:
Rami 2023-11-14 11:54:14 +02:00 committed by GitHub
parent 02d3dd8b7a
commit 0dd6b6350e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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