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

Method is_parent_alive

gunicorn/workers/sync.py:51–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 raise
50
51 def is_parent_alive(self):
52 # If our parent changed then we shut down.
53 if self.ppid != os.getppid():
54 self.log.info("Parent changed, shutting down: %s", self)
55 return False
56 return True
57
58 def run_for_one(self, timeout):
59 listener = self.sockets[0]

Callers 4

run_for_oneMethod · 0.95
run_for_multipleMethod · 0.95

Calls 1

infoMethod · 0.45