X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/af642a61b369ae6e488d674e17aa5242ae9d34d1..18c71e96f8f9281f570046095433df38c6785fd6:/log.c diff --git a/log.c b/log.c index 10f34d6f..a216b6a3 100644 --- a/log.c +++ b/log.c @@ -1,6 +1,7 @@ /* -*- c-file-style: "linux"; -*- - Copyright (C) 1998-2000 by Andrew Tridgell + Copyright (C) 1998-2001 by Andrew Tridgell + Copyright (C) 2000-2001 by Martin Pool This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,9 +19,10 @@ */ /* - logging and utility functions + Logging and utility functions. - tridge, May 1998 + Mapping to human-readable messages added by Martin Pool + , Oct 2000. */ #include "rsync.h" @@ -42,7 +44,7 @@ struct { { RERR_STREAMIO , "error in rsync protocol data stream" }, { RERR_MESSAGEIO , "errors with program diagnostics" }, { RERR_IPC , "error in IPC code" }, - { RERR_SIGNAL , "status returned when sent SIGUSR1, SIGINT" }, + { RERR_SIGNAL , "received SIGUSR1 or SIGINT" }, { RERR_WAITCHILD , "some error returned by waitpid()" }, { RERR_MALLOC , "error allocating core memory buffers" }, { RERR_TIMEOUT , "timeout in data send/receive" }, @@ -169,7 +171,7 @@ void rwrite(enum logcode code, char *buf, int len) return; } - /* then try to pass it to the other end */ + /* if that fails, try to pass it to the other end */ if (am_server && io_multiplex_write(code, buf, len)) { return; }