Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion supervisor/supervisord.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,17 @@ def ordered_stop_groups_phase_2(self):

def runforever(self):
events.notify(events.SupervisorRunningEvent())
timeout = 1 # this cannot be fewer than the smallest TickEvent (5)
first_poll = True

socket_map = self.options.get_socket_map()

while 1:
if first_poll:
timeout = 0
first_poll = False
else:
timeout = 1 # this cannot not be fewer than the smallest TickEvent (5)

combined_map = {}
combined_map.update(socket_map)
combined_map.update(self.get_process_map())
Expand Down