Skip to content

Commit cb8e422

Browse files
Waiting for the accepter thread to finish when the serve_forever method has the stop_event.is_set() == True.
1 parent 7b0b708 commit cb8e422

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/multiprocessing/managers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def serve_forever(self):
185185
util.debug('resetting stdout, stderr')
186186
sys.stdout = sys.__stdout__
187187
sys.stderr = sys.__stderr__
188+
accepter.join()
188189
sys.exit(0)
189190

190191
def accepter(self):

0 commit comments

Comments
 (0)