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

Method close

gunicorn/workers/gthread.py:158–169  ·  view source on GitHub ↗

Close the pipe file descriptors.

(self)

Source from the content-addressed store, hash-verified

156 self._queue = queue.SimpleQueue()
157
158 def close(self):
159 """Close the pipe file descriptors."""
160 if self._read_fd is not None:
161 try:
162 os.close(self._read_fd)
163 except OSError:
164 pass
165 if self._write_fd is not None:
166 try:
167 os.close(self._write_fd)
168 except OSError:
169 pass
170
171 def fileno(self):
172 """Return the readable file descriptor for selector registration."""

Calls 1

closeMethod · 0.45