From 2e76a2450e06c93d7cdbc0fe07bd9302ac085952 Mon Sep 17 00:00:00 2001 From: Chaskiel M Grundman Date: Sat, 28 Jan 2006 19:20:44 +0000 Subject: [PATCH] simple-darwin-disable-bkg-20060128 avoid potential hang by disabling bkg daemons on 10.4 for now --- src/afs/afs_daemons.c | 7 +++++++ src/config/param.ppc_darwin_80.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/afs/afs_daemons.c b/src/afs/afs_daemons.c index cf64703e1..1634b7ffd 100644 --- a/src/afs/afs_daemons.c +++ b/src/afs/afs_daemons.c @@ -35,6 +35,9 @@ short afs_brsDaemons = 0; /* number of daemons waiting for brs requests */ struct brequest afs_brs[NBRS]; /* request structures */ struct afs_osi_WaitHandle AFS_WaitHandler, AFS_CSWaitHandler; static int afs_brs_count = 0; /* request counter, to service reqs in order */ +#ifdef AFS_DISABLE_BKG +extern int disable_bkg = AFS_DISABLE_BKG; +#endif static int rxepoch_checked = 0; #define afs_CheckRXEpoch() {if (rxepoch_checked == 0 && rxkad_EpochWasSet) { \ @@ -563,6 +566,10 @@ int afs_BBusy(void) { AFS_STATCNT(afs_BBusy); +#ifdef AFS_DISABLE_BKG + if (disable_bkg) + return 1; +#endif if (afs_brsDaemons > 0) return 0; return 1; diff --git a/src/config/param.ppc_darwin_80.h b/src/config/param.ppc_darwin_80.h index b08ddd99a..6b1662def 100644 --- a/src/config/param.ppc_darwin_80.h +++ b/src/config/param.ppc_darwin_80.h @@ -96,6 +96,7 @@ #define AFS_NONFSTRANS #define AFS_SYSCALL 230 #define DARWIN_REFBASE 0 +#define AFS_DISABLE_BKG 1 /* File system entry (used if mount.h doesn't define MOUNT_AFS */ #define AFS_MOUNT_AFS "afs" -- 2.39.5