The below code raises an EOF exception on the input statement.
from multiprocessing import Process def mainloop(): while True: print("drawing