Python SocketServer.ForkingMixIn() Examples
The following are 1
code examples of SocketServer.ForkingMixIn().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
SocketServer
, or try the search function
.
Example #1
Source File: test_socketserver.py From ironpython2 with Apache License 2.0 | 5 votes |
def close_server(server): server.server_close() if hasattr(server, 'active_children'): # ForkingMixIn: Manually reap all child processes, since server_close() # calls waitpid() in non-blocking mode using the WNOHANG flag. for pid in server.active_children.copy(): try: os.waitpid(pid, 0) except ChildProcessError: pass server.active_children.clear()