From c81641702e6ebdb53b4078303e3fb8df5c447795 Mon Sep 17 00:00:00 2001 From: mar Date: Tue, 28 Nov 1989 17:08:23 +0000 Subject: [PATCH] added deadlock retry parameters --- include/dcm.h | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.45.2