X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=dss.c;h=a9cdb3b8a590f91c3d5d9488e6d99c8831bd3f11;hb=f05ae914bb3563ee657e4261ad0a7a8e80e8e9e7;hp=27c14b6720d47fc88721c7bd25765affc791daa9;hpb=97790d7fa5e13c61c95d1a48e1520ac00a983768;p=dss.git diff --git a/dss.c b/dss.c index 27c14b6..a9cdb3b 100644 --- a/dss.c +++ b/dss.c @@ -641,7 +641,12 @@ static int handle_rsync_exit(int status) goto out; } es = WEXITSTATUS(status); - if (es == 13) { /* Errors with program diagnostics */ + /* + * Restart rsync on non-fatal errors: + * 12: Error in rsync protocol data stream + * 13: Errors with program diagnostics + */ + if (es == 12 || es == 13) { DSS_WARNING_LOG("rsync process %d returned %d -- restarting\n", (int)create_pid, es); snapshot_creation_status = HS_NEEDS_RESTART;