From: Wayne Davison Date: Sun, 6 May 2007 19:44:26 +0000 (+0000) Subject: If the server is exiting with an error, delay our exit just a little X-Git-Tag: v3.0.0pre1~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=377d22ab9f4f7874bbfee94a7905bc1469b6a2e7;p=thirdparty%2Frsync.git If the server is exiting with an error, delay our exit just a little in order to give the client side a better chance of reading any error message we just sent. --- diff --git a/cleanup.c b/cleanup.c index d825e0f1..6fc72252 100644 --- a/cleanup.c +++ b/cleanup.c @@ -189,6 +189,8 @@ NORETURN void _exit_cleanup(int code, const char *file, int line) /* FALLTHROUGH */ #include "case_N.h" + if (am_server && code) + msleep(100); close_all(); /* FALLTHROUGH */