title: File Descriptor Sharing between Parent and forked Children
body: <p>I am a beginner in network programming..</p>
  
  <p>i follow stevens and implementing UDP server with reliability.</p>
  
  <p>i have a question.</p>
  
  <p>when a child is forked what happens to parent socket fd in child ...? i read that they get inherited that means we have two copies of socket fd in parent and child ?? do we need to close the inherited parent socket fd in child (stevens code doesnt do that)</p>
  
  <p>how does one close parent fds in child (using close () ??) but not the socket on which the client request arrived ( i should keep this open)? </p>
  
  <p>If i am being naive..please excuse me.</p>
  
  <p>Thanks for the help !!</p>