Josh Triplett
2015-Oct-01 18:41 UTC
/usr/lib/dovecot/imap exits with an error if stderr closed
At the end of a direct IMAP conversation with the imap binary, it writes an informative message like "imap(josh): Info: Connection closed in=0 out=365" to stderr. With stderr closed, the imap binary will exit with exit code 81 after it gets EBADF from that write. While it makes sense to fail on failure to write an error message, I don't think it makes sense to fail if writing an info message fails. I encountered this when using /usr/lib/dovecot/imap with mutt's "tunnel" option. Mutt seems to run the configured tunnel program with stderr closed, which triggers this error. - Josh Triplett
Possibly Parallel Threads
- [PATCH] chrreplace: Don't skip the first character
- [PATCH 2/3] x86: tss: Eliminate fragile calculation of TSS segment limit
- [PATCH 2/3] x86: tss: Eliminate fragile calculation of TSS segment limit
- [PATCH] drivers: virtio: Mark function virtballoon_migratepage() as static in virtio_balloon.c
- [PATCH] drivers: virtio: Mark function virtballoon_migratepage() as static in virtio_balloon.c