[tor-bugs] #2029 [Tor Relay]: Set FD_CLOEXEC on all open file descriptors so that they are closed on exec()

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Oct 10 01:58:51 UTC 2010


#2029: Set FD_CLOEXEC on all open file descriptors so that they are closed on
exec()
-----------------------+----------------------------------------------------
 Reporter:  sjmurdoch  |       Owner:  sjmurdoch
     Type:  defect     |      Status:  new      
 Priority:  normal     |   Milestone:           
Component:  Tor Relay  |     Version:           
 Keywords:             |      Parent:  #1775    
-----------------------+----------------------------------------------------

Comment(by nickm):

 If we need to pass fds across an exec, we should do so explicitly by
 clearing (or not setting) FD_CLOEXEC on them IMO.  I can't think of a case
 where we want to do an exec and pass all the fds to the new program.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2029#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list