Mercurial > dovecot > core-2.2
changeset 1313:c4fa748b9f24 HEAD
Call the hostpid_init() always at startup. Easier than doing it all around.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 21 Mar 2003 08:47:05 +0200 |
parents | c893ba64db07 |
children | bd8e8495c7b3 |
files | src/lib-index/mail-index-util.c src/lib-storage/index/mbox/mbox-save.c src/lib/file-dotlock.c src/lib/lib.c |
diffstat | 4 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-util.c Fri Mar 21 00:31:36 2003 +0200 +++ b/src/lib-index/mail-index-util.c Fri Mar 21 08:47:05 2003 +0200 @@ -93,8 +93,6 @@ { int fd; - hostpid_init(); - /* use ".temp.host.pid" as temporary file name. unlink() it first, just to be sure it's not symlinked somewhere for some reason.. FIXME: this function should rather be removed entirely. With
--- a/src/lib-storage/index/mbox/mbox-save.c Fri Mar 21 00:31:36 2003 +0200 +++ b/src/lib-storage/index/mbox/mbox-save.c Fri Mar 21 08:47:05 2003 +0200 @@ -93,7 +93,6 @@ if (*my_hostdomain == '\0') { struct hostent *hent; - hostpid_init(); hent = gethostbyname(my_hostname); name = hent != NULL ? hent->h_name : NULL;
--- a/src/lib/file-dotlock.c Fri Mar 21 00:31:36 2003 +0200 +++ b/src/lib/file-dotlock.c Fri Mar 21 08:47:05 2003 +0200 @@ -189,8 +189,6 @@ unsigned int stale_notify_threshold; time_t now, max_wait_time, last_notify; - hostpid_init(); - now = time(NULL); lock_path = t_strconcat(path, ".lock", NULL);