#!/usr/bin/pythonimportosimportpickleimporttimeimportsocketimportsignalsignal.signal(signal.SIGCHLD,signal.SIG_IGN)defserver(skt):line=skt.recv(1024)obj=pickle.loads(line)foriinobj:clnt.send("why did you send me "+i+"?\n")skt=socket.socket(socket.AF_INET,socket.SOCK_STREAM,0)skt.bind(('0.0.0.0',10007))skt.listen(10)whileTrue:clnt,addr=skt.accept()if(os.fork()==0):clnt.send("Accepted connection from %s:%d"%(addr[0],addr[1]))server(clnt)exit(1)