Skip to content

Commit 2a0433e

Browse files
tilgoviskytoup
andauthored
Update gunicorn/workers/workertmp.py
Co-Authored-By: skytoup <[email protected]>
1 parent 54d35d7 commit 2a0433e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gunicorn/workers/workertmp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self, cfg):
3838

3939
def notify(self):
4040
new_time = time.monotonic()
41-
os.utime(self._tmp.name, (new_time, new_time))
41+
os.utime(self._tmp.fileno(), (new_time, new_time))
4242

4343
def last_update(self):
4444
return os.fstat(self._tmp.fileno()).st_mtime

0 commit comments

Comments
 (0)