MCPcopy
hub / github.com/benoitc/gunicorn / closerange

Function closerange

gunicorn/util.py:319–325  ·  view source on GitHub ↗
(fd_low, fd_high)

Source from the content-addressed store, hash-verified

317 from os import closerange
318except ImportError:
319 def closerange(fd_low, fd_high):
320 # Iterate through and close all file descriptors.
321 for fd in range(fd_low, fd_high):
322 try:
323 os.close(fd)
324 except OSError: # ERROR, fd wasn't open to begin with (ignored)
325 pass
326
327
328def write_chunk(sock, data):

Callers 1

daemonizeFunction · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected