Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!blake!mtsu From: mtsu@blake.acs.washington.edu (Montana State) Newsgroups: comp.unix.questions Subject: Socket question Message-ID: <1006@blake.acs.washington.edu> Date: 1 Mar 89 08:37:57 GMT Reply-To: icsu6000@caesar.cs.montana.edu (Jaye Mathisen) Distribution: usa Organization: University of Washington, Seattle Lines: 25 Hokay, I hope this is a really stupid question... E-mail responses if this is too basic... I have this program I'm writing which is running as a server on our network. Everything works fine, except when I'm all done, or I get an error condition, I just want to blow the whole thing away and restart. What I have so far is: All the socket set up stuff execute garbage, return answer If error then shutdown(socket,(int)2); close(socket) execve(argv[0],argv,envp); The execve executes, but the program bombs on the bind() call with an "address already in use" message. How do I get this "address" released so I can restart it. Or is execve the wrong call?? Jaye Mathisen icsu6000@caesar.cs.montana.edu