From: mar Date: Tue, 28 Nov 1989 17:08:23 +0000 (+0000) Subject: added deadlock retry parameters X-Git-Tag: release77~1111 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/c81641702e6ebdb53b4078303e3fb8df5c447795 added deadlock retry parameters --- diff --git a/include/dcm.h b/include/dcm.h index e8f893ee..5a51294a 100644 --- a/include/dcm.h +++ b/include/dcm.h @@ -9,6 +9,11 @@ #define HARD_FAIL(x) (((x) != 0 ) && ((x) != SMS_NO_CHANGE)) #define SOFT_FAIL(x) (((x) == SMS_NO_MEM) || ((x) == SMS_CANT_CONNECT) || ((x) == SMS_CCONFIG) || ((x) == SMS_DEADLOCK)) + +#define DEADLOCK_WAIT (3 * 60) /* number of seconds to wait after + a deadlock before trying again. */ +#define DEADLOCK_TRIES 40 /* how many times to try (2 hours) */ + #define UMASK 0007 extern char *malloc(), *calloc(), *realloc();