[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cyrus-devel
Subject:    Re: incorrect handling of file descriptors 0,1,2
From:       Henrique de Moraes Holschuh <hmh () debian ! org>
Date:       2004-09-09 12:12:55
Message-ID: 20040909121255.GA30177 () khazad-dum ! debian ! net
[Download RAW message or body]

On Wed, 08 Sep 2004, Wesley D Craig wrote:
> If syslogd is not running, and CYRUS_VERBOSE is set to 1 or more, imapd 
> (and friends) will confuse the openlog() file descriptor with the 
> communication file descriptor.  This results in syslog() messages being 
> intermixed with IMAP protocol responses.  The attached sample fix opens 
> either "/dev/null" or "/" as 0, 1, and 2, after they have been closed.

That would explain a very long standing bug (since 2.1, at the very least) !

Now, the fix to this one I am certainly going to try to backport :)

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic