/* Two hacks to try and fix afsdb */ void afs_osi_MaskUserLoop(void) { #ifdef AFS_DARWIN_ENV afs_osi_Invisible(); afs_osi_fullSigMask(); #else afs_osi_MaskSignals(); #endif }
/* procedure for making our processes as invisible as we can */ void afs_osi_Invisible(void) { #ifdef AFS_LINUX22_ENV afs_osi_MaskSignals(); #elif defined(AFS_SUN5_ENV) curproc->p_flag |= SSYS; #elif defined(AFS_HPUX101_ENV) && !defined(AFS_HPUX1123_ENV) set_system_proc(u.u_procp); #elif defined(AFS_DARWIN80_ENV) #elif defined(AFS_DARWIN_ENV) /* maybe call init_process instead? */ current_proc()->p_flag |= P_SYSTEM; #elif defined(AFS_XBSD_ENV) curproc->p_flag |= P_SYSTEM; #elif defined(AFS_SGI_ENV) vrelvm(); #endif AFS_STATCNT(osi_Invisible); }