Skip to content
  • Roger Dingledine's avatar
    Fix the dns bug: children weren't dying · c485725c
    Roger Dingledine authored
    We were telling a child to die by closing the parent's file descriptor
    to him. But newer children were inheriting the open file descriptor from
    the parent, and since they weren't closing them, the socket never closed,
    so the child never read eof, so he never knew to exit.
    
    As a side effect to this bug, we were probably failing to properly close
    connections to remote hosts, ORs, and OPs, after a dns child was born.
    
    I'm surprised Tor worked at all.
    
    
    svn:r974
    c485725c