X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=dss.c;h=0bc891373bd7e6096063ebc45aa953582433d68c;hp=08a9f4c5767918c9226b51d721d11dc83de0e07f;hb=bf4beb6878cfcf692755807486f95e835f807b72;hpb=fafaa26953e4f452c6b91de4e24ec5ad2a8f6700 diff --git a/dss.c b/dss.c index 08a9f4c..0bc8913 100644 --- a/dss.c +++ b/dss.c @@ -862,6 +862,10 @@ static int handle_rsync_exit(int status) if (es != 0 && es != 24) { DSS_WARNING_LOG(("rsync exit code %d, error count %d\n", es, ++num_consecutive_rsync_errors)); + if (conf.create_given) { + ret = -E_BAD_EXIT_CODE; + goto out; + } if (num_consecutive_rsync_errors > conf.max_rsync_errors_arg) { ret = -E_TOO_MANY_RSYNC_ERRORS; snapshot_creation_status = HS_READY; @@ -1489,12 +1493,6 @@ static int setup_signal_handling(void) return install_sighandler(SIGCHLD); } -/** - * The main function of dss. - * - * \param argc Usual argument count. - * \param argv Usual argument vector. - */ int main(int argc, char **argv) { int ret;