Mercurial > dovecot > core-2.2
changeset 3885:b624b687fe13 HEAD
Create dict-server socket to base_dir.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 15 Jan 2006 12:07:32 +0200 |
parents | c3dc9cedce78 |
children | 598be05460f5 |
files | src/master/dict-process.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/dict-process.c Sun Jan 15 02:50:43 2006 +0200 +++ b/src/master/dict-process.c Sun Jan 15 12:07:32 2006 +0200 @@ -12,10 +12,10 @@ #include <unistd.h> #include <sys/stat.h> -#define DEFAULT_DICT_SERVER_SOCKET_PATH PKG_RUNDIR"/dict-server" +#define DICT_SERVER_SOCKET_NAME "dict-server" struct dict_process { - const char *path; + char *path; int fd; struct io *io; }; @@ -149,13 +149,15 @@ { process = i_new(struct dict_process, 1); process->fd = -1; - process->path = DEFAULT_DICT_SERVER_SOCKET_PATH; + process->path = i_strconcat(settings_root->defaults->base_dir, + DICT_SERVER_SOCKET_NAME, NULL); (void)dict_process_listen(process); } void dict_process_deinit(void) { dict_process_unlisten(process); + i_free(process->path); i_free(process); }