Date: Sat, 05 May 2018 21:35:25 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 228003] mail/dovecot: dovecot does not close stderr when daemonizing Message-ID: <bug-228003-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228003 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@FreeBSD.org Reporter: psagers@ignorare.net Flags: maintainer-feedback?(adamw@FreeBSD.org) Assignee: adamw@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=3Dsubprocess.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 mi= ght be wise to update the rc script to use /usr/sbin/daemon and pass -F to dove= cot. [1] https://github.com/saltstack/salt/issues/44848 [2] https://github.com/dovecot/core/blob/master/src/master/main.c#L610 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228003-7788>