welcome to LQ. If a process terminates it usually frees the resources, so that other processes waiting for that resource can use it to execute themselves(this is known as CRITICAL SECTION when a process gets the resource and proceed towards the execution).
If you are talking about sockets, they are file descriptors. They are used by the application layer protocols to communicate with the transport layer protocols. You have to close them whenever the communication the is over.
In case you forgot to close sockets, they will remain open(this is the thing what we refer as port).
Last edited by NM04; 04-15-2011 at 06:21 AM.