[Bug 228003] mail/dovecot: dovecot does not close stderr when daemonizing

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 5 21:35:28 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228003

            Bug ID: 228003
           Summary: mail/dovecot: dovecot does not close stderr when
                    daemonizing
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: adamw at FreeBSD.org
          Reporter: psagers at ignorare.net
             Flags: maintainer-feedback?(adamw at FreeBSD.org)
          Assignee: adamw at FreeBSD.org

Multiple people have reported to the SaltStack project that salt hangs
indefinitely when trying to restart dovecot.[1] The underlying issue can be
trivially reproduced directly with Python:

python2.7 -c 'import subprocess; subprocess.Popen(["/usr/sbin/service",
"dovecot", "onerestart"], stderr=subprocess.PIPE).communicate()'

While python is waiting, you can use ps to see that the child process is a
zombie. Unless and until dovecot cleans up their file descriptors,[2] it might
be wise to update the rc script to use /usr/sbin/daemon and pass -F to dovecot.



[1] https://github.com/saltstack/salt/issues/44848
[2] https://github.com/dovecot/core/blob/master/src/master/main.c#L610

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list