#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();