diff options
author | Wayne Davison <wayned@samba.org> | 2009-11-07 00:39:50 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-11-07 01:22:11 -0800 |
commit | f9185203ee03152001530db5624a2b8c93e1ea94 (patch) | |
tree | 8b1fb3dff27b0d87412a6739aba1f6de027a8e73 /rsync.h | |
parent | 84c11e85a4c4a12ecacba24afe9617222e4361e6 (diff) | |
download | rsync-f9185203ee03152001530db5624a2b8c93e1ea94.tar.gz rsync-f9185203ee03152001530db5624a2b8c93e1ea94.tar.bz2 rsync-f9185203ee03152001530db5624a2b8c93e1ea94.zip |
Added notifications about error-exit values:
- The receiver notifies the generator if it is exiting with an error,
and then, if it is a server, waits around for the generator to die.
This ensures that the client side has time to read the error.
- The generator or sender will notifiy the other side of the transfer of
an error-exit value if protocol 31 is in effect. This will get rid of
some "connection unexpectedly closed" errors that are really expected
events due to a fatal exit on the other side.
Diffstat (limited to 'rsync.h')
-rw-r--r-- | rsync.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -98,7 +98,7 @@ /* This is used when working on a new protocol version in CVS, and should * be a new non-zero value for each CVS change that affects the protocol. * It must ALWAYS be 0 when the protocol goes final (and NEVER before)! */ -#define SUBPROTOCOL_VERSION 10 +#define SUBPROTOCOL_VERSION 11 /* We refuse to interoperate with versions that are not in this range. * Note that we assume we'll work with later versions: the onus is on @@ -233,6 +233,7 @@ enum msgcode { MSG_IO_ERROR=22,/* the sending side had an I/O error */ MSG_IO_TIMEOUT=33,/* tell client about a daemon's timeout value */ MSG_NOOP=42, /* a do-nothing message */ + MSG_ERROR_EXIT=86, /* used by siblings and by protocol-31 */ MSG_SUCCESS=100,/* successfully updated indicated flist index */ MSG_DELETED=101,/* successfully deleted a file on receiving side */ MSG_NO_SEND=102,/* sender failed to open a file we wanted */ |