Log format

Jake Repp jrepp at nwlink.com
Mon Jul 8 22:55:02 EST 2002

Rsync uses the fork() system call to spawn a process that does most of the
actual work. I believe the first message is from the parent and the second
message is from the fork()'d child. Many of the variables in rsync are
global so they can be copied from the parent to the child process, you may
wish to save the connecting hostname into a temporary buffer which you would
write out from the child process (with it's child process id) or log another
message from the parent after forking (fork returns the child's process id).


----- Original Message -----
From: "Charlot sur Prolectronic" <charlot at prolectronic.ch>
To: <rsync at lists.samba.org>
Sent: Monday, July 08, 2002 1:01 AM
Subject: Log format

> Hello,
> I give you a little log format sample that I receive on the
> /var/log/rsyncd.log on the master server that receive data from
> a client :
> 2002/07/07 19:48:29 [15226] rsync to cfps from UNKNOWN (
> 2002/07/07 20:17:42 [15257] wrote 32 bytes  read 1584410 bytes  total size
> 5168179783
> my problem : the ID task in the braket [] is not the same from the
> and the end of the transfert,
> for control if the sync is good when we have difficult with few rsync task
> any can say me how to obtain the same ID for all the task or wich can I
> modify the log format on the rsync server ?
> many thanks for your help
> balet charles-henri
> --
> To unsubscribe or change options:
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html

More information about the rsync mailing list