<s> __test__ = False <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> import os <EOL> import eventlet <EOL> server = eventlet . listen ( ( '<STR_LIT:localhost>' , <NUM_LIT> ) ) <EOL> t = eventlet . Timeout ( <NUM_LIT> ) <EOL> try : <EOL> new_sock , address = server . accept ( ) <EOL> except eventlet . Timeout as t : <EOL> pass <EOL> pid = os . fork ( ) <EOL> if not pid : <EOL> t = eventlet . Timeout ( <NUM_LIT:0.1> ) <EOL> try : <EOL> new_sock , address = server . accept ( ) <EOL> except eventlet . Timeout as t : <EOL> print ( "<STR_LIT>" ) <EOL> else : <EOL> kpid , status = os . wait ( ) <EOL> assert kpid == pid <EOL> assert status == <NUM_LIT:0> <EOL> print ( "<STR_LIT>" ) </s>
