[Dovecot] Fwd: RE: pid stamp on log entries?
Timo Sirainen
tss at iki.fi
Wed Feb 28 20:27:24 UTC 2007
On Tue, 2007-02-27 at 14:48 -0600, bhayden at umn.edu wrote:
> Thanks for that. A more specific question: is there a way to have
> imap/pop-login processes log the PID of the child imap/pop process? This
> would be for the purpose of connecting a specific authentication with its
> own session activity in the case of multiple logins by a single user.
No, that information doesn't get transferred. And imap-login actually
never even knows the PID, so it would have to be done the other way:
imap would have to log imap-login's PID.
If you really want that, you could modify src/master/login-process.c
auth_master_callback(). The login process PID is in
request->process->pid. Pass it to create_mail_process() and log it there
or pass to the mail process or something.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070228/b8069eb3/attachment.pgp
More information about the dovecot
mailing list