title: How is socket connection being handled in a forked process
body: <p>I have a program that serves as a TCP server that listens to port 5000, for example. </p>
  
  <p>Now I want to run another command-line process to run in parallel with this server. I know the right way to do it is to fork the server, than call "exec" .... </p>
  
  <p>My question is, is the child process also "owns" this port 5000? If I want to release this port 5000, do I need to kill both the parent process and the child process? </p>
  
  <p>I am just very curious how this socket connection is being handled in the forking. </p>