Skip to content
Snippets Groups Projects
Commit cd2c647d authored by Natanael Copa's avatar Natanael Copa
Browse files

main/dovecot: dont crash when we rotate logs

ref #398
parent 3c24c458
No related branches found
No related tags found
No related merge requests found
# HG changeset patch
# User Timo Sirainen <tss@iki.fi>
# Date 1281449944 -3600
# Node ID 2281223b9cb99357a89971b64680530813d22a81
# Parent 367ce71922bfc95ec1faad91cd47f1c758cd2d50
master: Don't crash on config reload when using dict processes.
--- a/src/master/dict-process.c Wed Aug 04 16:54:17 2010 +0100
+++ b/src/master/dict-process.c Tue Aug 10 15:19:04 2010 +0100
@@ -214,7 +214,8 @@
struct dict_listener *listener = process->listener;
dict_process_deinit(process);
- if (listener->processes == NULL && listener->fd != -1) {
+ if (listener->processes == NULL && listener->fd != -1 &&
+ listener->io == NULL) {
/* last listener died, create new ones */
listener->io = io_add(listener->fd, IO_READ,
dict_listener_input, listener);
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dovecot
pkgver=1.2.13
pkgrel=0
pkgrel=1
pkgdesc="IMAP and POP3 server"
url="http://www.dovecot.org/"
license="LGPL-2.1"
......@@ -18,8 +18,14 @@ subpackages="$pkgname-doc $pkgname-dev $pkgname-pgsql $pkgname-mysql
source="http://www.dovecot.org/releases/1.2/$pkgname-$pkgver.tar.gz
dovecot.logrotate
dovecot.initd
2281223b9cb9.patch
"
prepare() {
cd "$srcdir"/$pkgname-$pkgver
patch -p1 -i "$srcdir"/2281223b9cb9.patch || return 1
}
build() {
cd "$srcdir/$pkgname-$pkgver"
......@@ -92,4 +98,5 @@ sqlite() {
md5sums="aaee3b5fd59e01780305553248f686bc dovecot-1.2.13.tar.gz
aec5cc797ab2acf72ce3b6bb1030345f dovecot.logrotate
c58b474dca20e6e60fa4f1f5b9c726e1 dovecot.initd"
c58b474dca20e6e60fa4f1f5b9c726e1 dovecot.initd
c8581417ce7946668839a9d0fcd93ee8 2281223b9cb9.patch"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment