[svn-commits] tilghman: branch 1.2 r40821 - /branches/1.2/apps/app_random.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Aug 21 19:59:37 MST 2006


Author: tilghman
Date: Mon Aug 21 21:59:37 2006
New Revision: 40821

URL: http://svn.digium.com/view/asterisk?rev=40821&view=rev
Log:
Bug 7779 - Using initstate(3) means that we cannot unload this module once loaded.

Modified:
    branches/1.2/apps/app_random.c

Modified: branches/1.2/apps/app_random.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_random.c?rev=40821&r1=40820&r2=40821&view=diff
==============================================================================
--- branches/1.2/apps/app_random.c (original)
+++ branches/1.2/apps/app_random.c Mon Aug 21 21:59:37 2006
@@ -116,9 +116,8 @@
 
 int usecount(void)
 {
-	int res;
-	STANDARD_USECOUNT(res);
-	return res;
+	/* Don't allow unload, since rand(3) depends upon this module being here. */
+	return 1;
 }
 
 char *key()



More information about the svn-commits mailing list