#3726: tunnel mode closes child's stderr
----------------------+----------------------
  Reporter:  lotheac  |      Owner:  mutt-dev
      Type:  defect   |     Status:  new
  Priority:  major    |  Milestone:
 Component:  mutt     |    Version:  1.5.23
Resolution:           |   Keywords:
----------------------+----------------------

Comment (by code@…):

 None
 Filename untitled-part.pgp could not be saved, problem: [Errno 13]
 Permission denied: '/home/mutt/trac/attachments/ticket/3726/untitled-
 part.pgp'\{{{
 This patch looks OK, but I think to be safe it would be better to
 leave the existing code alone (i.e. close(STDERR_FILENO)) but open
 /dev/null and dup() it AFTER the setsid() call.  I have a vague
 recollection that some older Unixen won't do the right thing regarding
 disassociating the controlling terminal if you don't do it in that
 order... though perhaps my vague memory is just being overly paranoid.
 }}}

 [attachment:"untitled-part.pgp"]

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3726#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to