Mercurial > dovecot > original-hg > dovecot-1.2
diff src/master/login-process.c @ 596:ab3590c3a7d9 HEAD
Added verbose_proctitle setting: Show more verbose process titles (in ps).
Currently shows user name and IP address. Useful for seeing who are actually
using the IMAP processes (eg. shared mailboxes or if same uid is used for
multiple accounts).
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 06 Nov 2002 16:20:50 +0200 |
parents | 3b53dd1280c6 |
children | 1906116a62ce |
line wrap: on
line diff
--- a/src/master/login-process.c Wed Nov 06 15:06:56 2002 +0200 +++ b/src/master/login-process.c Wed Nov 06 16:20:50 2002 +0200 @@ -30,6 +30,7 @@ int auth_id; int fd; + IPADDR ip; char login_tag[LOGIN_TAG_SIZE]; } LoginAuthRequest; @@ -58,6 +59,7 @@ reply.result = MASTER_RESULT_FAILURE; else { reply.result = create_imap_process(request->fd, + &request->ip, cookie_reply->user, cookie_reply->uid, cookie_reply->gid, @@ -116,6 +118,7 @@ authreq->login_id = req.id; authreq->auth_id = ++auth_id_counter; authreq->fd = client_fd; + memcpy(&authreq->ip, &req.ip, sizeof(IPADDR)); strcpy(authreq->login_tag, req.login_tag); auth_process = auth_process_find(req.auth_process);