Date: Thu, 8 Jul 2004 21:47:57 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 56812 for review Message-ID: <200407082147.i68Lluvg028583@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=56812 Change 56812 by rwatson@rwatson_tislabs on 2004/07/08 21:47:27 Restore shm_nused check, clean up slightly. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/sysv_shm.c#21 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/sysv_shm.c#21 (text+ko) ==== @@ -973,9 +973,14 @@ { #ifdef MAC int i; +#endif + + if (shm_nused > 0) + return (EBUSY); +#ifdef MAC for (i = 0; i < shmalloced; i++) - mac_destroy_ipc_shm(&shmsegs[i]); + mac_destroy_ipc_shm(&shmsegs[i]); #endif free(shmsegs, M_SHM); shmexit_hook = NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407082147.i68Lluvg028583>