PERFORCE change 56812 for review

Robert Watson rwatson at FreeBSD.org
Thu Jul 8 14:47:58 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=56812

Change 56812 by rwatson at 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;


More information about the p4-projects mailing list