def _handle_sighup(myrpcserver, signum, unused):
print("<STR_LIT>",sys.stderr)<EOL>if myrpcserver._closed:<EOL><INDENT>return<EOL><DEDENT>for c in set(myrpcserver.clients):<EOL><INDENT>try:<EOL><INDENT>c.shutdown(socket.SHUT_RDWR)<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>c.close()<EOL><DEDENT>myrpcserver.clients.clear()<EOL>
Closes (terminates) all of its clients. Though keeps server running.